diff --git a/utils/bashrc.d/06-sre-login-libs.bashrc b/utils/bashrc.d/06-sre-login-libs.bashrc index 3fad9c3..62fd53e 100644 --- a/utils/bashrc.d/06-sre-login-libs.bashrc +++ b/utils/bashrc.d/06-sre-login-libs.bashrc @@ -1,7 +1,7 @@ # shellcheck shell=bash function cluster_info_env_export(){ - SEARCH_STRING="id like '$INITIAL_CLUSTER_LOGIN' or external_id like '$INITIAL_CLUSTER_LOGIN' or display_name like '$INITIAL_CLUSTER_LOGIN'" + SEARCH_STRING="id like '$INITIAL_CLUSTER_LOGIN' or external_id like '$INITIAL_CLUSTER_LOGIN' or name like '$INITIAL_CLUSTER_LOGIN' or display_name like '$INITIAL_CLUSTER_LOGIN'" cluster_details=$(ocm list clusters --parameter=search="(($SEARCH_STRING))" --columns "id, external_id, name" --no-headers) CLUSTER_ID=$(awk '{print $1}' <<< $cluster_details) CLUSTER_UUID=$(awk '{print $2}' <<< $cluster_details)