fail when cfn state is ROLLBACK_COMPLETE
This state indicated cfw wasn't able to create some resources and it
failed. There is no point for keep waiting for cluster created.
Change-Id: I87dafa0bdf50efd2afa48481d6af8b3c8de0735a
diff --git a/src/com/mirantis/mk/Aws.groovy b/src/com/mirantis/mk/Aws.groovy
index 162540e..6a9c8ae 100644
--- a/src/com/mirantis/mk/Aws.groovy
+++ b/src/com/mirantis/mk/Aws.groovy
@@ -109,7 +109,7 @@
}
}
-def waitForStatus(venv_path, env_vars, stack_name, state, state_failed = [], max_timeout = 1200, loop_sleep = 30) {
+def waitForStatus(venv_path, env_vars, stack_name, state, state_failed = ['ROLLBACK_COMPLETE'], max_timeout = 1200, loop_sleep = 30) {
def aws = new com.mirantis.mk.Aws()
def common = new com.mirantis.mk.Common()
def python = new com.mirantis.mk.Python()