summaryrefslogtreecommitdiffstats
path: root/deploy/launch.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-22 18:45:54 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-03-22 21:41:21 +0800
commit366a89b97863c820a063b62609fa88142550a2f5 (patch)
tree0e4ef423c18aecba307f1faf0ff5eeb13abd8aae /deploy/launch.sh
parentb21d57081d4b705689cb6d7372e254818b84a760 (diff)
Opera adapter fix 1
After adding sudo opera_adapter can't get $COMPASS_DIR and still has the issue returning 0 when launch opera fail. Changing the way opera_adapter gets $COMPASS_DIR and add judgement inside opera_adapter to get opera launch error. Change-Id: I59d0d496f47b38e474de3dfc1277877dbe8ed840 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/launch.sh')
-rwxr-xr-xdeploy/launch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/launch.sh b/deploy/launch.sh
index 5f1ee1cb..51b502f2 100755
--- a/deploy/launch.sh
+++ b/deploy/launch.sh
@@ -142,8 +142,9 @@ echo "NOTE: openrc file is in the controller nodes"
echo ""
if [[ ${DHA##*/} =~ "openo" ]]; then
- sudo python ${COMPASS_DIR}/deploy/opera_adapter.py $DHA $NETWORK
+ python ${COMPASS_DIR}/deploy/opera_adapter.py $DHA $NETWORK
if [[ $? -ne 0 ]]; then
+ log_error 'opera launch failed'
exit 1
fi
fi