[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:
parent
779306cfed
commit
aa3975e084
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue