1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix default availability zone list

This commit is contained in:
Kevin Bell 2014-05-27 21:45:26 -07:00 committed by James Cammarata
parent 73c1ccf53e
commit 426a827b46

View file

@ -131,7 +131,7 @@ def create_autoscaling_group(connection, module):
ec2_connection = connect_to_aws(boto.ec2, region, **aws_connect_params)
except boto.exception.NoAuthHandlerFound, e:
module.fail_json(msg=str(e))
module.params['availability_zones'] = [zone.name for zone in ec2_connection.get_all_zones()]
availability_zones = module.params['availability_zones'] = [zone.name for zone in ec2_connection.get_all_zones()]
if not as_groups:
ag = AutoScalingGroup(