Fixes component filtering for snapshots

This commit is contained in:
Lord Hepipud 2021-09-02 13:18:30 +02:00
parent 7d23c38374
commit c3aea7b76b

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;
} }