vpc_zone_identifier must be a csv string when an asg is updated.

reviewable/pr18780/r1
James Martin 10 years ago
parent 0d551d8d24
commit 242aa9f81b

@ -326,6 +326,8 @@ def create_autoscaling_group(connection, module):
for attr in ASG_ATTRIBUTES: for attr in ASG_ATTRIBUTES:
if module.params.get(attr): if module.params.get(attr):
module_attr = 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) group_attr = getattr(as_group, attr)
# we do this because AWS and the module may return the same list # we do this because AWS and the module may return the same list
# sorted differently # sorted differently

Loading…
Cancel
Save