From 01972d26d48f0feceef38867948ef6c376a9eb35 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Mon, 11 Oct 2021 19:52:33 +0200 Subject: [PATCH] Minor fix in prepare_pods.sh (charmed osm debug-mode) Change-Id: Id6df73247e4227607b6ee5475d5ab9c6e06f056a Signed-off-by: David Garcia --- tools/debug/charmed/prepare_pods.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debug/charmed/prepare_pods.sh b/tools/debug/charmed/prepare_pods.sh index 8f740e4f..6749dd7f 100755 --- a/tools/debug/charmed/prepare_pods.sh +++ b/tools/debug/charmed/prepare_pods.sh @@ -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 -- 2.17.1