mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes freeze on IMC in case cmds are not found
This commit is contained in:
parent
a6dc5138e5
commit
b649e2a25d
2 changed files with 10 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
* [#330](https://github.com/Icinga/icinga-powershell-framework/pull/330) Fixes `Remove-ItemSecure` which was not using all args and might fail on empty path entries
|
||||
* [#332](https://github.com/Icinga/icinga-powershell-framework/pull/332) Fixes Icinga Director Self-Service ticket handling, which was not working within the Icinga Management Console
|
||||
* [#335](https://github.com/Icinga/icinga-powershell-framework/pull/335) Fixes Icinga Director Self-Service Zones and CA config for legacy installation wizard
|
||||
* [#343](https://github.com/Icinga/icinga-powershell-framework/pull/343) Fixes freeze within Icinga Management Console, in case commands which previously existed were removed/renamed or the user applied an invalid configuration with unknown commands as install file or install command
|
||||
|
||||
### Enhancements
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,13 @@ function Show-IcingaForWindowsInstallerConfigurationSummary()
|
|||
if (Test-Numeric ($ConfigEntry.Selection)) {
|
||||
Set-IcingaForWindowsInstallationHeaderSelection -Selection $ConfigEntry.Selection;
|
||||
|
||||
&$RealCommand;
|
||||
try {
|
||||
&$RealCommand;
|
||||
} catch {
|
||||
$ErrMsg = [string]::Format('Failed to apply configuration item "{0}". This could happen in case elements were removed or renamed between Framework versions: {1}', $RealCommand, $_.Exception.Message);
|
||||
$global:Icinga.InstallWizard.LastError += $ErrMsg;
|
||||
continue;
|
||||
}
|
||||
|
||||
$Caption = ([string]::Format('{0}=> {1}', $PrintName, $global:Icinga.InstallWizard.HeaderPreview));
|
||||
} else {
|
||||
|
|
@ -85,6 +91,8 @@ function Show-IcingaForWindowsInstallerConfigurationSummary()
|
|||
$CurrentIndex += 1;
|
||||
}
|
||||
|
||||
Write-Host 'Finished'
|
||||
|
||||
Disable-IcingaForWindowsInstallationHeaderPrint;
|
||||
Enable-IcingaForWindowsInstallationJumpToSummary;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue