Commit a5c29b88 by James Tanner

Merge pull request #4299 from psvo/ansible

Fix check for ROLLBACK_COMPLETE in cloudformation module
parents f332bb0d e8a5c6f5
......@@ -162,7 +162,7 @@ def stack_operation(cfn, stack_name, operation):
events = map(str, list(stack.describe_events())),
output = 'Stack %s complete' % operation)
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,
events = map(str, list(stack.describe_events())),
output = 'Problem with %s. Rollback complete' % operation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment