Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Exception on Hyper-V Snapshot checks with no VMs #80

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/31-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic

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

## 1.3.1 (2025-01-31)

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

* [#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

## 1.3.0 (2023-11-02)

[Issue and PRs](https://github.com/Icinga/icinga-powershell-hyperv/milestone/4?closed=1)
Expand Down
2 changes: 1 addition & 1 deletion provider/vcomputer/Get-IcingaVirtualComputerInfo.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function Get-IcingaVirtualComputerInfo()
}

if ($VComputerData.VMs.Count -eq 0) {
return;
return $VirtualComputers;
}

foreach ($vm in $VComputerData.VMs.Keys) {
Expand Down