Skip to content

Commit

Permalink
Fixes code causing JEA error for ScriptBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
LordHepipud committed Jan 27, 2022
1 parent 87afc3c commit bd21ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/31-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#246](https://github.com/Icinga/icinga-powershell-plugins/pull/246) Fixes wrong `UNKNOWN` on `Invoke-IcingaCheckService` while using service display name with the `-Service` argument instead of the service name
* [#261](https://github.com/Icinga/icinga-powershell-plugins/issues/261) Fixes `Invoke-IcingaCheckCertificate` which always included the CertStore because no option to not check the certificate store was available
* [#262](https://github.com/Icinga/icinga-powershell-plugins/pull/262) Fixes method NULL exception on empty EventLog entries for `Invoke-IcingaCheckEventLog`
* [#271](https://github.com/Icinga/icinga-powershell-plugins/pull/271) Fixes JEA error which detected `ScriptBlocks` in the plugin collection

## Enhancements

Expand Down
2 changes: 1 addition & 1 deletion provider/disks/Get-IcingaPartitionSpace.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Get-IcingaPartitionSpace()
[int]$DriveType = 3
);

[array]$LogicalDisks = Get-IcingaWindowsInformation Win32_LogicalDisk -Filter ([string]::Format('DriveType = {0}', $DriveType));
[array]$LogicalDisks = Get-IcingaWindowsInformation Win32_LogicalDisk -Filter ([string]::Format('DriveType = "{0}"', $DriveType));
[hashtable]$DiskData = @{ };

foreach ($disk in $LogicalDisks) {
Expand Down

0 comments on commit bd21ea6

Please sign in to comment.