Skip to content

Commit 20c28b2

Browse files
committed
Removes hardcoded global zones
1 parent 18f5ad8 commit 20c28b2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

doc/31-Changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ documentation before upgrading to a new release.
77

88
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
99

10+
## 1.3.1 (2021-02-04)
11+
12+
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/12?closed=1)
13+
14+
### Enhancements
15+
16+
### Bugfixes
17+
18+
* [#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
19+
1020
## 1.3.0 (2020-12-01)
1121

1222
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/10?closed=1)

lib/core/icingaagent/writers/Write-IcingaAgentZonesConfig.psm1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ function Write-IcingaAgentZonesConfig()
5858
$ZonesConf = [string]::Format('{0} endpoints = [ "{1}" ];{2}', $ZonesConf, $Hostname, "`r`n");
5959
$ZonesConf = [string]::Format('{0}{1}{2}{2}', $ZonesConf, '}', "`r`n");
6060

61-
if ($GlobalZones.Contains('director-global') -eq $FALSE) {
62-
$GlobalZones += 'director-global';
63-
}
64-
if ($GlobalZones.Contains('global-templates') -eq $FALSE) {
65-
$GlobalZones += 'global-templates';
66-
}
67-
6861
foreach ($zone in $GlobalZones) {
6962
$ZonesConf = [string]::Format('{0}object Zone "{1}" {2}{3}', $ZonesConf, $zone, '{', "`r`n");
7063
$ZonesConf = [string]::Format('{0} global = true;{1}', $ZonesConf, "`r`n");

0 commit comments

Comments
 (0)