DaanHoogland commented on code in PR #14051:
URL: https://github.com/apache/cloudstack/pull/14051#discussion_r3940396373


##########
server/src/main/java/com/cloud/network/vpc/NetworkACLServiceImpl.java:
##########
@@ -1109,7 +1109,7 @@ private NetworkACLItem createACLRuleFromMap(Map<String, 
Object> ruleMap, long ac
             throw new InvalidParameterValueException("Protocol is required");
         }
         String action = (String) ruleMap.getOrDefault(ApiConstants.ACTION, 
"deny");
-        String trafficType = (String) 
ruleMap.getOrDefault(ApiConstants.TRAFFIC_TYPE, 
NetworkACLItem.TrafficType.Ingress);
+        String trafficType = (String) 
ruleMap.getOrDefault(ApiConstants.TRAFFIC_TYPE, 
NetworkACLItem.TrafficType.Ingress.toString());

Review Comment:
   best reading ;) this would be an implementation of toString in the enum. But 
to be honest, if this is not solving a real live issue, … we are poor on 
test-resources so again, is this a real live issue?



-- 
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]

Reply via email to