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
This commit is contained in:
Jens Harbott 2018-03-12 14:48:53 +00:00
parent 06fa9dfc17
commit dc78ef8880

View File

@ -2,7 +2,9 @@
shell: shell:
cmd: | cmd: |
./stack.sh 2>&1 ./stack.sh 2>&1
rc=$?
echo "*** FINISHED ***" echo "*** FINISHED ***"
exit $rc
args: args:
chdir: "{{devstack_base_dir}}/devstack" chdir: "{{devstack_base_dir}}/devstack"
become: true become: true