Skip to content

Commit ca65149

Browse files
committed
Fixes package manifest reader on Win 2012 R2
1 parent 2356dbd commit ca65149

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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.9.2 (2022-06-03)
11+
12+
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/25?closed=1)
13+
14+
### Bugfixes
15+
16+
* [#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
17+
1018
## 1.9.1 (2022-05-13)
1119

1220
### Bugfixes

lib/core/repository/Read-IcingaPackageManifest.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Read-IcingaPackageManifest()
3434
$FileName = $entry.Name.Replace('.psd1', '');
3535
$FilePath = $entry.FullName.Replace($entry.Name, '');
3636
$FileStream = $entry.Open();
37-
$FileReader = [System.IO.StreamReader]::new($FileStream);
37+
$FileReader = New-Object 'System.IO.StreamReader'($FileStream);
3838
$PackageManifestContent = $FileReader.ReadToEnd();
3939
$FileReader.Dispose();
4040

0 commit comments

Comments
 (0)