diff --git a/cloud/ec2_asg b/cloud/ec2_asg index a72b3ad5246..4e7fd1ff7ad 100644 --- a/cloud/ec2_asg +++ b/cloud/ec2_asg @@ -181,7 +181,7 @@ def delete_autoscaling_group(connection, module): instances = True while instances: - connection.get_all_groups() + groups = connection.get_all_groups() for group in groups: if group.name == group_name: if not group.instances: