Fixes wrong IMC indention on host address summary

This commit is contained in:
Lord Hepipud 2021-09-13 16:01:36 +02:00
parent 060dbdada0
commit 435e686127
2 changed files with 14 additions and 2 deletions

View file

@ -21,6 +21,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#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
* [#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
* [#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
* [#371](https://github.com/Icinga/icinga-powershell-framework/issues/371) Fixes wrong indention on Icinga parent host address at IMC configuration summary overview
### Enhancements

View file

@ -9,8 +9,19 @@ function Show-IcingaForWindowsInstallerConfigurationSummary()
);
[array]$Entries = @();
[int]$CurrentIndex = 0
[int]$MaxEntryLength = (Get-IcingaMaxTextLength -TextArray $global:Icinga.InstallWizard.Config.Keys) - 4;
[int]$CurrentIndex = 0;
[array]$KeyValues = @();
foreach ($entry in $global:Icinga.InstallWizard.Config.Keys) {
if ($entry.Contains(':')) {
$KeySplit = $entry.Split(':');
$KeyValues += [string]::Format('{0} for "{1}"', ($KeySplit[0]), ($KeySplit[1]));
} else {
$KeyValues += $entry;
}
}
[int]$MaxEntryLength = (Get-IcingaMaxTextLength -TextArray $KeyValues) - 4;
Enable-IcingaForWindowsInstallationHeaderPrint;