Skip to content

Commit 7b7eb48

Browse files
Kishan Kavalayadvr
authored andcommitted
CLOUDSTACK-6376: Return empty list when network tier has no ACL list associated.
(cherry picked from commit 26746fe) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 5ac4489 commit 7b7eb48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎server/src/com/cloud/network/vpc/NetworkACLServiceImpl.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ public Pair<List<? extends NetworkACLItem>, Integer> listNetworkACLItems(ListNet
515515
if (networkId != null) {
516516
Network network = _networkDao.findById(networkId);
517517
aclId = network.getNetworkACLId();
518+
if( aclId == null){
519+
// No aclId associated with the network.
520+
//Return empty list
521+
return new Pair(new ArrayList<NetworkACLItem>(), 0);
522+
}
518523
}
519524

520525
if (trafficType != null) {

0 commit comments

Comments
 (0)