Fixes package manifest reader on Win 2012 R2

This commit is contained in:
Lord Hepipud 2022-06-01 16:54:13 +02:00
parent 2356dbdf2a
commit ca65149366
2 changed files with 9 additions and 1 deletions

View file

@ -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.9.2 (2022-06-03)
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/25?closed=1)
### Bugfixes
* [#529](https://github.com/Icinga/icinga-powershell-framework/pull/529) Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older
## 1.9.1 (2022-05-13)
### Bugfixes

View file

@ -34,7 +34,7 @@ function Read-IcingaPackageManifest()
$FileName = $entry.Name.Replace('.psd1', '');
$FilePath = $entry.FullName.Replace($entry.Name, '');
$FileStream = $entry.Open();
$FileReader = [System.IO.StreamReader]::new($FileStream);
$FileReader = New-Object 'System.IO.StreamReader'($FileStream);
$PackageManifestContent = $FileReader.ReadToEnd();
$FileReader.Dispose();