Minor fix in prepare_pods.sh (charmed osm debug-mode)
Change-Id: Id6df73247e4227607b6ee5475d5ab9c6e06f056a
Signed-off-by: David Garcia <david.garcia@canonical.com>
diff --git a/tools/debug/charmed/prepare_pods.sh b/tools/debug/charmed/prepare_pods.sh
index 8f740e4..6749dd7 100755
--- a/tools/debug/charmed/prepare_pods.sh
+++ b/tools/debug/charmed/prepare_pods.sh
@@ -35,7 +35,7 @@
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