[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']`.
pull/22969/merge
Ryan Brown 7 years ago committed by Sloane Hertel
parent 779306cfed
commit aa3975e084

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

Loading…
Cancel
Save