From 0b544f9be73842fcdf1022c20f2fc78652259490 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 15 Sep 2021 13:31:31 +0200 Subject: [PATCH] Fixes error on last uninstall message print --- doc/100-General/10-Changelog.md | 8 ++++++++ lib/core/framework/Uninstall-IcingaForWindows.psm1 | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 1554084..89aae0d 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -7,6 +7,14 @@ documentation before upgrading to a new release. Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed). +## 1.7.0 (2021-11-09) + +[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/16?closed=1) + +### Bugfixes + +* [#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 + ## 1.6.1 (2021-09-15) [Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/21?closed=1) diff --git a/lib/core/framework/Uninstall-IcingaForWindows.psm1 b/lib/core/framework/Uninstall-IcingaForWindows.psm1 index d0eb49b..ade3b75 100644 --- a/lib/core/framework/Uninstall-IcingaForWindows.psm1 +++ b/lib/core/framework/Uninstall-IcingaForWindows.psm1 @@ -71,8 +71,8 @@ function Uninstall-IcingaForWindows() Remove-Module 'icinga-powershell-framework' -Force -ErrorAction SilentlyContinue; if ($HasErrors) { - Write-IcingaConsoleWarning 'Not all components could be removed. Please ensure no other PowerShell/Application is currently open and accessing Icinga for Windows files'; + Write-Host 'Not all components could be removed. Please ensure no other PowerShell/Application is currently open and accessing Icinga for Windows files'; } else { - Write-IcingaConsoleNotice 'Icinga for Windows was removed from this host.'; + Write-Host 'Icinga for Windows was removed from this host.'; } }