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

Fix the issue #931

Checking that the parameter doesn't exist. The old code had a bug when the parameter was 0.
This commit is contained in:
Julien Syx 2015-03-17 17:57:18 +01:00 committed by Matt Clay
parent d5e3abc5d5
commit c676adde0b

View file

@ -324,7 +324,7 @@ def create_autoscaling_group(connection, module):
as_group = as_groups[0]
changed = False
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)
if attr == 'vpc_zone_identifier':
module_attr = ','.join(module_attr)