mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2553: Made ACL item action case-insensitive
This commit is contained in:
parent
32e7ba23a3
commit
612afbd179
|
|
@ -342,9 +342,7 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
|
|||
|
||||
//Check ofr valid action Allow/Deny
|
||||
if(action != null){
|
||||
try {
|
||||
NetworkACLItem.Action.valueOf(action);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
if(!("Allow".equalsIgnoreCase(action) || "Deny".equalsIgnoreCase(action))){
|
||||
throw new InvalidParameterValueException("Invalid action. Allowed actions are Allow and Deny");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue