summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Martin <jmartin@ansible.com>2015-01-06 14:04:03 -0500
committerJames Cammarata <jimi@sngx.net>2015-02-17 14:45:11 -0600
commit69d4f6e82debb035d81928940f432ec3fb0dd855 (patch)
tree0c57a317f7a528d5364966898031d427933c7110
parentcec0e7b15075e950e15f5dec0be0075baa80a635 (diff)
downloadansible-modules-core-69d4f6e82debb035d81928940f432ec3fb0dd855.tar.gz
vpc_zone_identifier must be a csv string when an asg is updated.
-rw-r--r--cloud/amazon/ec2_asg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloud/amazon/ec2_asg.py b/cloud/amazon/ec2_asg.py
index 9e802c34..9ce5216b 100644
--- a/cloud/amazon/ec2_asg.py
+++ b/cloud/amazon/ec2_asg.py
@@ -322,6 +322,8 @@ def create_autoscaling_group(connection, module):
for attr in ASG_ATTRIBUTES:
if module.params.get(attr):
module_attr = module.params.get(attr)
+ if attr == 'vpc_zone_identifier':
+ module_attr = ','.join(module_attr)
group_attr = getattr(as_group, attr)
# we do this because AWS and the module may return the same list
# sorted differently