Fix the issue #931

Checking that the parameter doesn't exist. The old code had a bug when the parameter was 0.
reviewable/pr18780/r1
Julien Syx 10 years ago
parent 8658b82de7
commit 23fdba26b5

@ -324,7 +324,7 @@ def create_autoscaling_group(connection, module):
as_group = as_groups[0] as_group = as_groups[0]
changed = False changed = False
for attr in ASG_ATTRIBUTES: for attr in ASG_ATTRIBUTES:
if module.params.get(attr): if module.params.get(attr, None) is not None:
module_attr = module.params.get(attr) module_attr = module.params.get(attr)
if attr == 'vpc_zone_identifier': if attr == 'vpc_zone_identifier':
module_attr = ','.join(module_attr) module_attr = ','.join(module_attr)

Loading…
Cancel
Save