Fix check for ROLLBACK_COMPLETE in cloudformation module
When stack creation is rolled back, final status is not CREATE_ROLLBACK_COMPLETE but ROLLBACK_COMPLETE.
This commit is contained in:
parent
e1ff809d1a
commit
bbd8205da2
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,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,
|
result = dict(changed=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