Repository: cloudstack
Updated Branches:
  refs/heads/4.3 928915840 -> c680f6ea9


CLOUDSTACK-6927: remove duplicate in cleanup list


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c680f6ea
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c680f6ea
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c680f6ea

Branch: refs/heads/4.3
Commit: c680f6ea9872b137d60462d2148426a674bc66d8
Parents: 9289158
Author: Loic Lambiel <[email protected]>
Authored: Thu Jun 12 15:31:07 2014 +0200
Committer: Sebastien Goasguen <[email protected]>
Committed: Tue Jun 17 17:11:16 2014 +0200

----------------------------------------------------------------------
 scripts/vm/network/security_group.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c680f6ea/scripts/vm/network/security_group.py
----------------------------------------------------------------------
diff --git a/scripts/vm/network/security_group.py 
b/scripts/vm/network/security_group.py
index 873fdef..88a4e45 100755
--- a/scripts/vm/network/security_group.py
+++ b/scripts/vm/network/security_group.py
@@ -722,6 +722,8 @@ def cleanup_rules():
                 logging.debug("chain " + chain + " does not correspond to a vm 
or vm is not running or paused, cleaning up ebtable rules")
                 cleanup.append(vm_name)
 
+        cleanup = list(set(cleanup))
+
         for vmname in cleanup:
             destroy_network_rules_for_vm(vmname)
 

Reply via email to