mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6376: Return empty list when network tier has no ACL list associated.
(cherry picked from commit 26746feb39)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
5ac44896c8
commit
7b7eb48281
|
|
@ -515,6 +515,11 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
|
|||
if (networkId != null) {
|
||||
Network network = _networkDao.findById(networkId);
|
||||
aclId = network.getNetworkACLId();
|
||||
if( aclId == null){
|
||||
// No aclId associated with the network.
|
||||
//Return empty list
|
||||
return new Pair(new ArrayList<NetworkACLItem>(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (trafficType != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue