From b0875a6a2b9f1b0bc96745ec2af8f93e80a80a02 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 30 Sep 2019 00:33:17 +0200 Subject: [PATCH] Improved output while trying to enable/disable features --- lib/core/icingaagent/misc/Disable-IcingaAgentFeature.psm1 | 2 +- lib/core/icingaagent/misc/Enable-IcingaAgentFeature.psm1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/icingaagent/misc/Disable-IcingaAgentFeature.psm1 b/lib/core/icingaagent/misc/Disable-IcingaAgentFeature.psm1 index d3ca9b8..983c340 100644 --- a/lib/core/icingaagent/misc/Disable-IcingaAgentFeature.psm1 +++ b/lib/core/icingaagent/misc/Disable-IcingaAgentFeature.psm1 @@ -9,7 +9,7 @@ function Disable-IcingaAgentFeature() } if ((Test-IcingaAgentFeatureEnabled -Feature $Feature) -eq $FALSE) { - Write-Host 'This feature is already disabled.' + Write-Host ([string]::Format('This feature is already disabled [{0}]', $Feature)); return; } diff --git a/lib/core/icingaagent/misc/Enable-IcingaAgentFeature.psm1 b/lib/core/icingaagent/misc/Enable-IcingaAgentFeature.psm1 index 91f90f5..6721a61 100644 --- a/lib/core/icingaagent/misc/Enable-IcingaAgentFeature.psm1 +++ b/lib/core/icingaagent/misc/Enable-IcingaAgentFeature.psm1 @@ -9,7 +9,7 @@ function Enable-IcingaAgentFeature() } if ((Test-IcingaAgentFeatureEnabled -Feature $Feature)) { - Write-Host 'This feature is already enabled.' + Write-Host ([string]::Format('This feature is already enabled [{0}]', $Feature)); return; }