From 426a827b4676c51f38212edcf5e4ac7888909f8d Mon Sep 17 00:00:00 2001 From: Kevin Bell Date: Tue, 27 May 2014 21:45:26 -0700 Subject: [PATCH] Fix default availability zone list --- library/cloud/ec2_asg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/ec2_asg b/library/cloud/ec2_asg index 856f5d59ad..a72b3ad524 100644 --- a/library/cloud/ec2_asg +++ b/library/cloud/ec2_asg @@ -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(