Skip to content

Commit 787571e

Browse files
committed
Fixes -Force flag for environment service updater
1 parent f0abc36 commit 787571e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Set-IcingaServiceEnvironment()
5959
);
6060
}
6161

62-
if ($Global:Icinga.Protected.Environment.FetchedServices) {
62+
if ($Global:Icinga.Protected.Environment.FetchedServices -And $Force -eq $FALSE) {
6363
return;
6464
}
6565

0 commit comments

Comments
 (0)