CloudFormation: Allow failed changesets to gather stack_outputs (#43509)
This commit is contained in:
parent
8522e6420e
commit
a8f2b8f5ab
1 changed files with 4 additions and 2 deletions
|
@ -382,8 +382,10 @@ def create_changeset(module, stack_params, cfn, events_limit):
|
||||||
elif newcs['Status'] == 'FAILED' and "The submitted information didn't contain changes" in newcs['StatusReason']:
|
elif newcs['Status'] == 'FAILED' and "The submitted information didn't contain changes" in newcs['StatusReason']:
|
||||||
cfn.delete_change_set(ChangeSetName=cs['Id'])
|
cfn.delete_change_set(ChangeSetName=cs['Id'])
|
||||||
result = dict(changed=False,
|
result = dict(changed=False,
|
||||||
output='Stack is already up-to-date, Change Set refused to create due to lack of changes.')
|
output='The created Change Set did not contain any changes to this stack and was deleted.')
|
||||||
module.exit_json(**result)
|
# a failed change set does not trigger any stack events so we just want to
|
||||||
|
# skip any further processing of result and just return it directly
|
||||||
|
return result
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
# Lets not hog the cpu/spam the AWS API
|
# Lets not hog the cpu/spam the AWS API
|
||||||
|
|
Loading…
Reference in a new issue