diff --git a/tests/scripts/helpers/kruize.py b/tests/scripts/helpers/kruize.py index a9aefa521..bcae2bbe5 100644 --- a/tests/scripts/helpers/kruize.py +++ b/tests/scripts/helpers/kruize.py @@ -43,7 +43,7 @@ def form_kruize_url(cluster_type, SERVER_IP=None): subprocess.run(['oc expose svc/kruize -n openshift-tuning'], shell=True, stdout=subprocess.PIPE) ip = subprocess.run( - ['oc status -n openshift-tuning | grep "kruize" | grep -v "kruize-ui" "kruize-db" | grep port | cut -d " " -f1 | cut -d "/" -f3'], shell=True, + ['oc status -n openshift-tuning | grep "kruize" | grep -v "kruize-ui" | grep -v "kruize-db" | grep port | cut -d " " -f1 | cut -d "/" -f3'], shell=True, stdout=subprocess.PIPE) SERVER_IP = ip.stdout.decode('utf-8').strip('\n') print("IP = ", SERVER_IP)