From dc78ef8880b65f56abb0e0c2b80c25d9a0a495e1 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Mon, 12 Mar 2018 14:48:53 +0000 Subject: [PATCH] Save rc from stack.sh in run-devstack role Avoid overriding the failure state of stack.sh by the trailing echo command. Change-Id: I74820709edc98f67ff1a0c620ce5db3a3571b7f5 --- roles/run-devstack/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/run-devstack/tasks/main.yaml b/roles/run-devstack/tasks/main.yaml index 1ff82950e4..f58b31d477 100644 --- a/roles/run-devstack/tasks/main.yaml +++ b/roles/run-devstack/tasks/main.yaml @@ -2,7 +2,9 @@ shell: cmd: | ./stack.sh 2>&1 + rc=$? echo "*** FINISHED ***" + exit $rc args: chdir: "{{devstack_base_dir}}/devstack" become: true