From bbd8205da2675810706281d6d09256d9ccb78f69 Mon Sep 17 00:00:00 2001 From: Petr Svoboda Date: Mon, 30 Sep 2013 15:15:19 +0200 Subject: [PATCH] Fix check for ROLLBACK_COMPLETE in cloudformation module When stack creation is rolled back, final status is not CREATE_ROLLBACK_COMPLETE but ROLLBACK_COMPLETE. --- cloud/cloudformation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/cloudformation b/cloud/cloudformation index ae9f2e0f26f..92367ef66ce 100644 --- a/cloud/cloudformation +++ b/cloud/cloudformation @@ -140,7 +140,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, events = map(str, list(stack.describe_events())), output = 'Problem with %s. Rollback complete' % operation)