aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramamani yeleswarapu <ramamani.yeleswarapu@intel.com>2018-10-11 16:08:32 -0700
committerHarry Huang <huangxiangyu5@huawei.com>2018-10-29 06:15:44 +0000
commita421c905989aaebe18ea961dd7d72368cb93ba86 (patch)
tree5d6a0f74b519fc659f408c9f867dfa9830e8a2ff
parent5a4958ed29c471315c4b54f9a703ff43793688c5 (diff)
Fix stor4nfv CI errors
Change-Id: I5b76fa40ecaffb53bc924de6e13f4803c5f6593f Signed-off-by: ramamani yeleswarapu <ramamani.yeleswarapu@intel.com>
-rw-r--r--plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml5
1 files changed, 3 insertions, 2 deletions
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