Woops, make collect/delete loop more efficient.

reviewable/pr18780/r1
moe 10 years ago
parent 047bd6f651
commit 0d0205ad54

@ -363,9 +363,9 @@ def create_autoscaling_group(connection, module):
for tag in asg_tags:
want_tags[tag.key] = [tag.value, tag.propagate_at_launch]
dead_tags = []
for tag in as_group.tags:
have_tags[tag.key] = [tag.value, tag.propagate_at_launch]
dead_tags = []
if not tag.key in want_tags:
changed = True
dead_tags.append(tag)

Loading…
Cancel
Save