mirror of
https://github.com/apache/cloudstack
synced 2026-08-29 00:38:51 +00:00
CLOUDSTACK-6376: Return empty list when network tier has no ACL list associated.
This commit is contained in:
parent
635b69676a
commit
6094e00797
@ -532,6 +532,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
Block a user