Skip to content

Commit 7ca347a

Browse files
authored
Merge pull request #371 from Icinga:fix/imc_indention_error_host_address
Fix: Wrong IMC indention on host address summary Fixes wrong indention on Icinga parent host address at IMC configuration summary.
2 parents 060dbda + 435e686 commit 7ca347a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
2121
* [#367](https://github.com/Icinga/icinga-powershell-framework/issues/367) Fixes Icinga Director register state not being saved on overview after registration of Host inside Self-Service API
2222
* [#368](https://github.com/Icinga/icinga-powershell-framework/issues/368) Fixes repository lookup on local path for ifw.repo.json, in the json file was added to the file path during repository add
2323
* [#369](https://github.com/Icinga/icinga-powershell-framework/issues/369) Fixes experimental feature warning for API-Check Forwarder feature, which is fully supported since v1.6.0 and replaces it with proper information and link to docs
24+
* [#371](https://github.com/Icinga/icinga-powershell-framework/issues/371) Fixes wrong indention on Icinga parent host address at IMC configuration summary overview
2425

2526
### Enhancements
2627

lib/core/installer/menu/installation/general/ConfigurationSummary.psm1

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@ function Show-IcingaForWindowsInstallerConfigurationSummary()
99
);
1010

1111
[array]$Entries = @();
12-
[int]$CurrentIndex = 0
13-
[int]$MaxEntryLength = (Get-IcingaMaxTextLength -TextArray $global:Icinga.InstallWizard.Config.Keys) - 4;
12+
[int]$CurrentIndex = 0;
13+
[array]$KeyValues = @();
14+
15+
foreach ($entry in $global:Icinga.InstallWizard.Config.Keys) {
16+
if ($entry.Contains(':')) {
17+
$KeySplit = $entry.Split(':');
18+
$KeyValues += [string]::Format('{0} for "{1}"', ($KeySplit[0]), ($KeySplit[1]));
19+
} else {
20+
$KeyValues += $entry;
21+
}
22+
}
23+
24+
[int]$MaxEntryLength = (Get-IcingaMaxTextLength -TextArray $KeyValues) - 4;
1425

1526
Enable-IcingaForWindowsInstallationHeaderPrint;
1627

0 commit comments

Comments
 (0)