From: ramamani yeleswarapu Date: Thu, 11 Oct 2018 23:08:32 +0000 (-0700) Subject: Fix stor4nfv CI errors X-Git-Tag: opnfv-7.1.0~11 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F64179%2F1;p=compass4nfv.git Fix stor4nfv CI errors Change-Id: I5b76fa40ecaffb53bc924de6e13f4803c5f6593f Signed-off-by: ramamani yeleswarapu (cherry picked from commit a421c905989aaebe18ea961dd7d72368cb93ba86) --- diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml index d14c0c68..4c4370fd 100644 --- a/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml +++ b/plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml @@ -37,9 +37,10 @@ shell: _raw_params: | function _modify_osdsdock_endpoint { - local ip_addr=(lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1" + local ip_addr=$((lxc-info -n $(lxc-ls --line | grep ceph-mon) -iH)|grep "10.1") if [ ! -z "${ip_addr}" ]; then - sed -i 's/^50050.*/api_endpoint = $ip_addr:50050/g' /etc/opensds/opensds.conf + sed -i 's/api_endpoint = localhost:50050/api_endpoint = '"$ip_addr"':50050/g' \ + /etc/opensds/opensds.conf fi } _modify_osdsdock_endpoint