From 3a3d66fc0aa3e2a4add14bfd72dc221dfe774b30 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Tue, 2 Apr 2024 21:01:44 +0200 Subject: [PATCH] Fixes -Force flag for environment service updater --- lib/core/icingaagent/setters/Set-IcingaServiceEnvironment.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }