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

[cloud] Stop CloudFormation module from always making changesets (#26619)

In Python a function is always truthy, and the name of the
`create_changeset` function was being accidentally used instead of
`module.params['changeset']`.
This commit is contained in:
Ryan Brown 2017-07-10 16:57:37 -04:00 committed by Sloane Hertel
parent 779306cfed
commit aa3975e084

View file

@ -518,7 +518,7 @@ def main():
if state == 'present': if state == 'present':
if not stack_info: if not stack_info:
result = create_stack(module, stack_params, cfn) result = create_stack(module, stack_params, cfn)
elif create_changeset: elif module.params.get('create_changeset'):
result = create_changeset(module, stack_params, cfn) result = create_changeset(module, stack_params, cfn)
else: else:
result = update_stack(module, stack_params, cfn) result = update_stack(module, stack_params, cfn)