shwstppr commented on code in PR #10208: URL: https://github.com/apache/cloudstack/pull/10208#discussion_r1925270112
########## api/src/main/java/org/apache/cloudstack/api/command/user/firewall/CreateFirewallRuleCmd.java: ########## @@ -103,14 +105,13 @@ public String getProtocol() { @Override public List<String> getSourceCidrList() { - if (cidrlist != null) { + if (CollectionUtils.isNotEmpty(cidrlist) && (cidrlist.size() == 1 && StringUtils.isNotBlank(cidrlist.get(0)))) { Review Comment: I'll add some unit tests to not make a mess of it -- 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: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org