Improved output while trying to enable/disable features

This commit is contained in:
Lord Hepipud 2019-09-30 00:33:17 +02:00
parent e9c37bd042
commit 079b64aff1
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ function Disable-IcingaAgentFeature()
} }
if ((Test-IcingaAgentFeatureEnabled -Feature $Feature) -eq $FALSE) { 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; return;
} }

View file

@ -9,7 +9,7 @@ function Enable-IcingaAgentFeature()
} }
if ((Test-IcingaAgentFeatureEnabled -Feature $Feature)) { if ((Test-IcingaAgentFeatureEnabled -Feature $Feature)) {
Write-Host 'This feature is already enabled.' Write-Host ([string]::Format('This feature is already enabled [{0}]', $Feature));
return; return;
} }