From e1f6036aaac72955e32c28dc656f72ce55049105 Mon Sep 17 00:00:00 2001 From: ramamani yeleswarapu Date: Thu, 11 Oct 2018 16:08:32 -0700 Subject: Fix stor4nfv CI errors Change-Id: I5b76fa40ecaffb53bc924de6e13f4803c5f6593f Signed-off-by: ramamani yeleswarapu (cherry picked from commit a421c905989aaebe18ea961dd7d72368cb93ba86) --- plugins/stor4nfv/roles/os-stor4nfv/tasks/post-install.yml | 5 +++-- 1 file 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 -- cgit 1.2.3-korg