Minor fix in prepare_pods.sh (charmed osm debug-mode)
[osm/devops.git] / tools / debug / charmed / prepare_pods.sh
index 8f740e4..6749dd7 100755 (executable)
@@ -35,7 +35,7 @@ echo "" | tee ~/.ssh/config.d/osm
 for module in $MODULES; do
     if [[ `juju config -m osm $module debug_mode` == "true" ]]; then
       pod_name=`microk8s.kubectl -n osm get pods | grep -E "^$module-" | grep -v operator | cut -d " " -f 1`
-      pod_ip=`microk8s.kubectl -n osm get pods $pod_name -o yaml | yq .status.podIP`
+      pod_ip=`microk8s.kubectl -n osm get pods $pod_name -o yaml | yq e .status.podIP -`
       echo "Host $module
   HostName $pod_ip
   User root