Commit d03b3ed5 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix cleaning old groups after restructure to prepare() method

parent 03e06cb7
......@@ -222,9 +222,10 @@ class Generator(object):
self.create_ipset(RULES_FROM_ANY, "hash:ip,port")
self.create_ipset(RULES_FROM_ANY_TO_IP, "hash:ip")
self.create_ipset(RULES_FROM_CIDR, "hash:ip,port,net")
return old_groups
def generate_all(self):
old_groups = self.prepare()
groups = security_groups.get_security_groups(self.etcd_client)
for group_id, group in sorted(groups.items(), key=lambda x: x[0]):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment