diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-29 17:30:15 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-29 18:03:19 +0800 |
commit | 8f307233248edcd8d191f7bbb113330170638a72 (patch) | |
tree | 6ac543677d522db1785b921b585ebb98242beaec /deploy/launch.sh | |
parent | b52dade4c2d8ee662f22893c9527196e0074b20d (diff) |
Fix some opera related error
1. echo a string to compass log to avoid deploy error
bing concealed
2. judge return code of ./opera_launch.sh
Change-Id: I7ac2bac9b600f289c01116e7f7777d1219a58eb2
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/launch.sh')
-rwxr-xr-x | deploy/launch.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deploy/launch.sh b/deploy/launch.sh index 5f1ee1cb..51094b29 100755 --- a/deploy/launch.sh +++ b/deploy/launch.sh @@ -142,8 +142,11 @@ 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 + +echo 'compass deploy success' |