[MOSK] Fix generation of clouds.yaml
relative path inside bash code is broken sometimes
MOSSUST-122
Change-Id: Ib58c1fb3b0d125bc6f49c16dbb12c37d921a18d6
diff --git a/bm_mcc_mosk/seed/get_openstack_credentials.sh b/bm_mcc_mosk/seed/get_openstack_credentials.sh
index 8371ff3..968eb7f 100755
--- a/bm_mcc_mosk/seed/get_openstack_credentials.sh
+++ b/bm_mcc_mosk/seed/get_openstack_credentials.sh
@@ -1,5 +1,6 @@
#!/bin/bash
export KUBECONFIG=/root/child.kubeconfig
mkdir -p /root/.config/openstack
-kubectl -n openstack-external get secrets openstack-identity-credentials -o jsonpath='{.data.clouds\.yaml}' | base64 -d > /root/clouds.yaml
+/root/kaas-bootstrap/bin/kubectl -n openstack-external get secrets openstack-identity-credentials -o jsonpath='{.data.clouds\.yaml}' | base64 -d > /root/clouds.yaml
+rm -f /root/.config/openstack/clouds.yaml
ln -s /root/clouds.yaml /root/.config/openstack/clouds.yaml