rhtyd commented on a change in pull request #2418: CLOUDSTACK-10242: Properly 
parse incoming rules to Sec Group
URL: https://github.com/apache/cloudstack/pull/2418#discussion_r162907480
 
 

 ##########
 File path: scripts/vm/network/security_group.py
 ##########
 @@ -951,16 +951,15 @@ def parse_network_rules(rules):
   if rules is None or len(rules) == 0:
     return ret
 
-  lines = rules.split(';')[:-1]
+  lines = rules.split('NEXT;')[:-1]
 
 Review comment:
   I think having the `,` is fine, @DaanHoogland see line 967/968, the cidrs 
could be comma separated, so splitting on `NEXT;` looks okay. The `NEXT` 
separator is added in `SecurityGroupRulesCmd.java`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to