mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes component filtering for snapshots
This commit is contained in:
parent
7d23c38374
commit
c3aea7b76b
1 changed files with 5 additions and 1 deletions
|
|
@ -45,7 +45,11 @@ function Get-IcingaComponentList()
|
|||
$ComponentData | Add-Member -MemberType NoteProperty -Name 'Location' -Value $package.Location;
|
||||
$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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue