Skip to content

Commit de0e587

Browse files
committed
Fixes Director state not being saved on overview
1 parent d02a12e commit de0e587

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1818
* [#363](https://github.com/Icinga/icinga-powershell-framework/issues/363) Fixes unneeded continue for JEA process lookup, in case no JEA pid is present
1919
* [#365](https://github.com/Icinga/icinga-powershell-framework/issues/365) Fixes Icinga environment corruption on Icinga Agent installation failure
2020
* [#366](https://github.com/Icinga/icinga-powershell-framework/issues/366) Fixes error handling with Icinga Director over IMC, by printing more detailed and user-friendly error messages
21+
* [#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
2122

2223
### Enhancements
2324

lib/core/installer/menu/installation/director/DirectorTemplate.psm1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
101101
$ParentZone = '';
102102
$MasterAddress = '';
103103
$Ticket = '';
104+
$DirectorHostRegister = (Get-IcingaForWindowsInstallerStepSelection -InstallerStep 'Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost');
105+
106+
if ($null -eq $DirectorHostRegister) {
107+
$DirectorHostRegister = 0;
108+
}
104109

105110
if (Test-IcingaPowerShellConfigItem -ConfigObject $DirectorConfig -ConfigKey 'agent_version') {
106111
$AgentVersion = $DirectorConfig.agent_version;
@@ -227,8 +232,7 @@ function Resolve-IcingaForWindowsManagementConsoleInstallationDirectorTemplate()
227232

228233
Show-IcingaForWindowsInstallerMenuSelectInstallIcingaAgent -Automated -DefaultInput $InstallIcingaAgent;
229234
Show-IcingaForWindowsInstallationMenuEnterIcingaAgentVersion -Automated -Value $AgentVersion;
230-
231-
Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost -Automated;
235+
Show-IcingaForWindowsManagementConsoleInstallationDirectorRegisterHost -DefaultInput $DirectorHostRegister -Automated;
232236

233237
Enable-IcingaFrameworkConsoleOutput;
234238
Reset-IcingaForWindowsManagementConsoleInstallationDirectorConfigModifyState;

0 commit comments

Comments
 (0)