mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes error on last uninstall message print
This commit is contained in:
parent
14ee09cb84
commit
0b544f9be7
2 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue