Merge pull request #355 from Icinga:fix/cmoponent_list_snapshot_filter

Fix: Component filtering for snapshots/release
This commit is contained in:
Lord Hepipud 2021-09-02 13:19:04 +02:00 committed by GitHub
commit 0ee4bc52e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,11 @@ function Get-IcingaComponentList()
$ComponentData | Add-Member -MemberType NoteProperty -Name 'Location' -Value $package.Location; $ComponentData | Add-Member -MemberType NoteProperty -Name 'Location' -Value $package.Location;
$ComponentData | Add-Member -MemberType NoteProperty -Name 'Snapshot' -Value $package.Snapshot; $ComponentData | Add-Member -MemberType NoteProperty -Name 'Snapshot' -Value $package.Snapshot;
if ($Snapshot -And $package.Snapshot -eq $FALSE) { if ($package.Snapshot -And $Snapshot -eq $FALSE) {
continue;
}
if ($package.Snapshot -eq $FALSE -And $Snapshot) {
continue; continue;
} }