Skip to content

Commit 8839c0d

Browse files
authored
Merge pull request #80 from Icinga:fix/exception_on_no_virtual_machines_found
Fix: Exception on Hyper-V Snapshot checks with no VMs Fixes exception on Hyper-V checks in case no virtual machine is returned, found or filtered out
2 parents 6328fe3 + 116076c commit 8839c0d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/31-Changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1111

1212
[Issue and PRs](https://github.com/Icinga/icinga-powershell-hyperv/milestone/5?closed=1)
1313

14+
## 1.3.1 (2025-01-31)
15+
16+
[Issue and PRs](https://github.com/Icinga/icinga-powershell-hyperv/milestone/6?closed=1)
17+
18+
* [#77](https://github.com/Icinga/icinga-powershell-hyperv/issues/77) Fixes exception on Hyper-V checks in case no virtual machine is returned, found or filtered out
19+
1420
## 1.3.0 (2023-11-02)
1521

1622
[Issue and PRs](https://github.com/Icinga/icinga-powershell-hyperv/milestone/4?closed=1)

provider/vcomputer/Get-IcingaVirtualComputerInfo.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function Get-IcingaVirtualComputerInfo()
502502
}
503503

504504
if ($VComputerData.VMs.Count -eq 0) {
505-
return;
505+
return $VirtualComputers;
506506
}
507507

508508
foreach ($vm in $VComputerData.VMs.Keys) {

0 commit comments

Comments
 (0)