Skip to content

Commit

Permalink
Merge pull request #529 from Icinga:fix/package_manifest_reader_on_20…
Browse files Browse the repository at this point in the history
…12r2

Fix: Package manifest reader on Win 2012 R2

Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older.
  • Loading branch information
LordHepipud authored Jun 1, 2022
2 parents 126ac28 + 8ed242a commit 6b0e177
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 6b0e177

Please sign in to comment.