Skip to content

Commit

Permalink
fix / use complete postfix to catch create stack status
Browse files Browse the repository at this point in the history
  • Loading branch information
ccggeo authored and hakbailey committed Apr 12, 2024
1 parent 96f0343 commit 91fbbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def check_mode_changeset(module, stack_params, cfn):
for _i in range(60): # total time 5 min
# check stack is ready to have a change set created
stack = get_stack_facts(module, cfn, stack_params['StackName'], raise_errors=True)
if stack["StackStatus"] == "UPDATE_COMPLETE":
if stack["StackStatus"].endswith('_COMPLETE'):
break
time.sleep(5)
change_set = cfn.create_change_set(aws_retry=True, **stack_params)
Expand Down

0 comments on commit 91fbbf3

Please sign in to comment.