CS-14966. When a group has no ingress rules ec2-describe-group does not list this group.

This commit is contained in:
Likitha Shetty 2012-05-18 11:49:29 +05:30
parent 23c2579640
commit 691b9a471c
1 changed files with 4 additions and 2 deletions

View File

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