mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Improved output while trying to enable/disable features
This commit is contained in:
parent
e9c37bd042
commit
079b64aff1
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue