Skip to content

Commit

Permalink
Fixes package manifest reader on Win 2012 R2
Browse files Browse the repository at this point in the history
  • Loading branch information
LordHepipud committed Jun 1, 2022
1 parent 126ac28 commit 8ed242a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/100-General/10-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic

[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/23?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

### Enhancements

* [#40](https://github.com/Icinga/icinga-powershell-framework/issues/40) Adds support to set service recovery for the Icinga Agent and Icinga for Windows service, to restart them in case of a crash or error
Expand Down
2 changes: 1 addition & 1 deletion lib/core/repository/Read-IcingaPackageManifest.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8ed242a

Please sign in to comment.