Ensure xtrace is enabled in devstack plugin
Currently some phases of the devstack plugin do not have xtrace enabled, which can make it hard to debug issues in the devstack plugin. This patch makes sure that xtrace is enabled while the Octavia devstack plugin is running so that we can see the commands being executed. It will restore the previous setting after our plugin is done running. Change-Id: Id6828b86779f1daca6a00a03f43c78fe26828f4f
This commit is contained in:
parent
1d1142a13d
commit
e45937a47c
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
saveenv=$-
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
|
||||
# devstack plugin for octavia
|
||||
|
||||
|
@ -817,3 +818,8 @@ if [[ $saveenv =~ e ]]; then
|
|||
else
|
||||
set +e
|
||||
fi
|
||||
if [[ $saveenv =~ x ]]; then
|
||||
set -x
|
||||
else
|
||||
set +x
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue