From: David Garcia Date: Mon, 11 Oct 2021 17:52:33 +0000 (+0200) Subject: Minor fix in prepare_pods.sh (charmed osm debug-mode) X-Git-Tag: release-v11.0-start~4 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fdevops.git;a=commitdiff_plain;h=01972d26d48f0feceef38867948ef6c376a9eb35 Minor fix in prepare_pods.sh (charmed osm debug-mode) Change-Id: Id6df73247e4227607b6ee5475d5ab9c6e06f056a Signed-off-by: David Garcia --- 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