From 84e4a086b4da4509b355d9e31fba0258ad4dbec6 Mon Sep 17 00:00:00 2001 From: Matt Dorn Date: Wed, 12 Jun 2019 23:25:40 -0500 Subject: [PATCH] add -l option to $POD_MANAGER attach this script can fail if it is executed on a host that is running another openshift console container. only attempt to attach to the latest. --- scripts/run_console_local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_console_local.sh b/scripts/run_console_local.sh index d488bb7346..157be96b0f 100755 --- a/scripts/run_console_local.sh +++ b/scripts/run_console_local.sh @@ -44,7 +44,7 @@ run_ocp_console_image (){ verify_ocp_console_image (){ if [ "$($POD_MANAGER ps -q -f label=io.openshift.build.source-location=https://github.com/openshift/console)" ]; then - container_id="$($POD_MANAGER ps -q -f label=io.openshift.build.source-location=https://github.com/openshift/console)" + container_id="$($POD_MANAGER ps -q -l -f label=io.openshift.build.source-location=https://github.com/openshift/console)" echo -e "${GREEN}The OLM is accessible via web console at:${RESET}" echo -e "${GREEN}http://localhost:9000/${RESET}" echo -e "${GREEN}Press Ctrl-C to quit${RESET}";