From 51359891697a00868b6ea90126104282e9057904 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 8 Mar 2023 13:45:56 +0100 Subject: [PATCH] Fixes config generator to not use set_if = true --- doc/100-General/10-Changelog.md | 1 + lib/core/tools/Get-IcingaCheckCommandConfig.psm1 | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index affff77..81749e7 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -14,6 +14,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic ### Bugfixes * [#603](https://github.com/Icinga/icinga-powershell-framework/issues/603) Fixed service filter to handle exclude with wildcards instead of requiring the full service name (*not* applying to the display name) +* [#609](https://github.com/Icinga/icinga-powershell-framework/issues/609) Fixed config generator to never use `set_if = true` on Icinga 2/Icinga Director configuration ## 1.10.1 (2022-12-20) diff --git a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 index 758c8ca..b2275f4 100644 --- a/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 +++ b/lib/core/tools/Get-IcingaCheckCommandConfig.psm1 @@ -100,12 +100,14 @@ function Get-IcingaCheckCommandConfig() @{ 'arguments' = @{ '-NoProfile' = @{ - 'order' = '-3'; - 'set_if' = $TRUE; + 'order' = '-3'; + 'skip_key' = $TRUE; + 'value' = '-NoLogo'; }; '-NoLogo' = @{ - 'order' = '-2'; - 'set_if' = $TRUE; + 'order' = '-2'; + 'skip_key' = $TRUE; + 'value' = '-NoLogo'; }; '-ExecutionPolicy' = @{ 'order' = '-1';