Merge pull request #609 from Icinga:fix/do_not_use_set_if_true_on_icinga_config

Fix: Config generator should not use set_if = true

We should nbever use `set_if` = true inside the Icinga Configuration or Director Baskets. This will result in the Icinga Director always flagging a certain object as modified.
This commit is contained in:
Lord Hepipud 2023-03-08 13:50:05 +01:00 committed by GitHub
commit b7de62069c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -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)

View file

@ -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';