diff --git a/lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1 b/lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1 index 52c8fed..5378160 100644 --- a/lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1 +++ b/lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1 @@ -59,7 +59,7 @@ function Set-IcingaServiceEnvironment() ); } - if ($Global:Icinga.Protected.Environment.FetchedServices) { + if ($Global:Icinga.Protected.Environment.FetchedServices -And $Force -eq $FALSE) { return; }