Commit e0a4c389 by Kevin Bell Committed by James Cammarata

Fixed asg instance count polling

parent 426a827b
...@@ -181,7 +181,7 @@ def delete_autoscaling_group(connection, module): ...@@ -181,7 +181,7 @@ def delete_autoscaling_group(connection, module):
instances = True instances = True
while instances: while instances:
connection.get_all_groups() groups = connection.get_all_groups()
for group in groups: for group in groups:
if group.name == group_name: if group.name == group_name:
if not group.instances: if not group.instances:
......
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