CLOUDSTACK-6927: catch empty cmd

This commit is contained in:
Loic Lambiel 2014-06-04 16:06:08 +02:00 committed by Sebastien Goasguen
parent 0711d14b87
commit 07602d81af
1 changed files with 2 additions and 0 deletions

View File

@ -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: