Merge pull request #159 from Icinga:fix/framework_update_fails_on_old_versions_due_to_code_cache

Fix: Fixes crash during update due to code cache feature
This commit is contained in:
Lord Hepipud 2020-11-20 08:25:13 +01:00 committed by GitHub
commit d9e5551ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#140](https://github.com/Icinga/icinga-powershell-framework/issues/140) Fixes version fetching for not loaded modules during upgrades/plugin calls with `Get-IcingaPowerShellModuleVersion` * [#140](https://github.com/Icinga/icinga-powershell-framework/issues/140) Fixes version fetching for not loaded modules during upgrades/plugin calls with `Get-IcingaPowerShellModuleVersion`
* [#143](https://github.com/Icinga/icinga-powershell-framework/issues/143) Fixes the annoying hint from the analyzer to check space before open brace * [#143](https://github.com/Icinga/icinga-powershell-framework/issues/143) Fixes the annoying hint from the analyzer to check space before open brace
* [#152](https://github.com/Icinga/icinga-powershell-framework/issues/152) Fixes incorrect rendering for empty arrays which used `$null` incorrectly instead of `@()` and fixed ValidateSet which now also supports arrays as data type * [#152](https://github.com/Icinga/icinga-powershell-framework/issues/152) Fixes incorrect rendering for empty arrays which used `$null` incorrectly instead of `@()` and fixed ValidateSet which now also supports arrays as data type
* [#159](https://github.com/Icinga/icinga-powershell-framework/pull/159) Fixes crash during update of the Icinga Framework, caused by the newly introduced experimental feature for code caching
## 1.2.0 (2020-08-28) ## 1.2.0 (2020-08-28)

View file

@ -92,7 +92,9 @@ function Install-IcingaFrameworkUpdate()
Remove-ItemSecure -Path $Archive.Directory -Recurse -Force | Out-Null; Remove-ItemSecure -Path $Archive.Directory -Recurse -Force | Out-Null;
Write-IcingaConsoleNotice 'Updating Framework cache file'; Write-IcingaConsoleNotice 'Updating Framework cache file';
if (Test-IcingaFunction 'Write-IcingaFrameworkCodeCache') {
Write-IcingaFrameworkCodeCache; Write-IcingaFrameworkCodeCache;
}
Write-IcingaConsoleNotice 'Framework update has been completed. Please start a new PowerShell instance now to complete the update'; Write-IcingaConsoleNotice 'Framework update has been completed. Please start a new PowerShell instance now to complete the update';