diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index 4cc8cf2..e834d91 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -7,6 +7,16 @@ documentation before upgrading to a new release. Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed). +## 1.3.1 (2021-02-04) + +[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/12?closed=1) + +### Enhancements + +### Bugfixes + +* [#188](https://github.com/Icinga/icinga-powershell-framework/pull/188) Removes hardcoded zones `director-global` and `global-zones` which were always set regardless of user specification. This fix will ensure the user has the option to add or not add these zones + ## 1.3.0 (2020-12-01) [Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/10?closed=1) diff --git a/lib/core/icingaagent/writers/Write-IcingaAgentZonesConfig.psm1 b/lib/core/icingaagent/writers/Write-IcingaAgentZonesConfig.psm1 index bd0ff6f..181ab4e 100644 --- a/lib/core/icingaagent/writers/Write-IcingaAgentZonesConfig.psm1 +++ b/lib/core/icingaagent/writers/Write-IcingaAgentZonesConfig.psm1 @@ -58,13 +58,6 @@ function Write-IcingaAgentZonesConfig() $ZonesConf = [string]::Format('{0} endpoints = [ "{1}" ];{2}', $ZonesConf, $Hostname, "`r`n"); $ZonesConf = [string]::Format('{0}{1}{2}{2}', $ZonesConf, '}', "`r`n"); - if ($GlobalZones.Contains('director-global') -eq $FALSE) { - $GlobalZones += 'director-global'; - } - if ($GlobalZones.Contains('global-templates') -eq $FALSE) { - $GlobalZones += 'global-templates'; - } - foreach ($zone in $GlobalZones) { $ZonesConf = [string]::Format('{0}object Zone "{1}" {2}{3}', $ZonesConf, $zone, '{', "`r`n"); $ZonesConf = [string]::Format('{0} global = true;{1}', $ZonesConf, "`r`n");