mirror of https://github.com/apache/cloudstack.git
CS-14966. When a group has no ingress rules ec2-describe-group does not list this group.
This commit is contained in:
parent
23c2579640
commit
691b9a471c
|
|
@ -93,8 +93,10 @@ public class EC2GroupFilterSet {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (matched && ipPermissionFilterMatched(group, ipPermissionFilterSet))
|
||||
resultList.addGroup( group );
|
||||
if (matched) {
|
||||
if (ipPermissionFilterSet.isEmpty() || ipPermissionFilterMatched(group, ipPermissionFilterSet))
|
||||
resultList.addGroup( group );
|
||||
}
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue