Skip to content

Commit f99230e

Browse files
authored
Merge pull request #375 from Icinga:fix/exception_on_last_uninstall_message
Fix: Exception on last uninstall message print Fixes an exception on the last message output while running `Uninstall-IcingaForWindows`, as the used function is no longer available due to Framework uninstallation. We now replaced the last messages with proper `Write-Host` output
2 parents 14ee09c + 0b544f9 commit f99230e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

doc/100-General/10-Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ 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.7.0 (2021-11-09)
11+
12+
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/16?closed=1)
13+
14+
### Bugfixes
15+
16+
* [#375](https://github.com/Icinga/icinga-powershell-framework/pull/375) Fixes exception on last message printed during `Uninstall-IcingaForWindows`, because the prior used function is no longer present at this point
17+
1018
## 1.6.1 (2021-09-15)
1119

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

lib/core/framework/Uninstall-IcingaForWindows.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function Uninstall-IcingaForWindows()
7171
Remove-Module 'icinga-powershell-framework' -Force -ErrorAction SilentlyContinue;
7272

7373
if ($HasErrors) {
74-
Write-IcingaConsoleWarning 'Not all components could be removed. Please ensure no other PowerShell/Application is currently open and accessing Icinga for Windows files';
74+
Write-Host 'Not all components could be removed. Please ensure no other PowerShell/Application is currently open and accessing Icinga for Windows files';
7575
} else {
76-
Write-IcingaConsoleNotice 'Icinga for Windows was removed from this host.';
76+
Write-Host 'Icinga for Windows was removed from this host.';
7777
}
7878
}

0 commit comments

Comments
 (0)