weizhouapache commented on a change in pull request #6182:
URL: https://github.com/apache/cloudstack/pull/6182#discussion_r839386519
##########
File path: server/src/main/java/com/cloud/network/vpc/NetworkACLServiceImpl.java
##########
@@ -1146,6 +1146,9 @@ protected void validateMoveAclRulesData(NetworkACLItemVO
ruleBeingMoved, Network
NetworkACLVO acl = _networkACLDao.findById(aclId);
Vpc vpc = _entityMgr.findById(Vpc.class, acl.getVpcId());
Account caller = CallContext.current().getCallingAccount();
+ if (acl.getVpcId() == null) {
+ throw new InvalidParameterValueException("Unable to move rules for
a default ACL");
+ }
Review comment:
@Pearl1594
What does this change fix ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]