mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6927: catch empty cmd
This commit is contained in:
parent
0711d14b87
commit
07602d81af
|
|
@ -547,6 +547,8 @@ def delete_rules_for_vm_in_bridge_firewall_chain(vmName):
|
|||
delcmds = execute(delcmd).split('\n')
|
||||
delcmds.pop()
|
||||
for cmd in delcmds:
|
||||
if cmd == '':
|
||||
continue
|
||||
try:
|
||||
execute("iptables " + cmd)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in New Issue