mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #4299 from psvo/ansible
Fix check for ROLLBACK_COMPLETE in cloudformation module
This commit is contained in:
commit
a5c29b886e
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ def stack_operation(cfn, stack_name, operation):
|
||||||
events = map(str, list(stack.describe_events())),
|
events = map(str, list(stack.describe_events())),
|
||||||
output = 'Stack %s complete' % operation)
|
output = 'Stack %s complete' % operation)
|
||||||
break
|
break
|
||||||
if '%s_ROLLBACK_COMPLETE' % operation == stack.stack_status:
|
if 'ROLLBACK_COMPLETE' == stack.stack_status or '%s_ROLLBACK_COMPLETE' % operation == stack.stack_status:
|
||||||
result = dict(changed=True, failed=True,
|
result = dict(changed=True, failed=True,
|
||||||
events = map(str, list(stack.describe_events())),
|
events = map(str, list(stack.describe_events())),
|
||||||
output = 'Problem with %s. Rollback complete' % operation)
|
output = 'Problem with %s. Rollback complete' % operation)
|
||||||
|
|
Loading…
Reference in a new issue