From 403e02ea358e63ba63c51b25b6e8406288212eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Sanz=20G=C3=B3miz?= <100594859+asanzgom@users.noreply.github.com> Date: Thu, 26 Oct 2023 17:03:32 +0200 Subject: [PATCH] Changed oc command to get RHODS version on Common.robot (#989) --- ods_ci/tests/Resources/Common.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ods_ci/tests/Resources/Common.robot b/ods_ci/tests/Resources/Common.robot index 7c0103fd6..2918a2220 100644 --- a/ods_ci/tests/Resources/Common.robot +++ b/ods_ci/tests/Resources/Common.robot @@ -99,7 +99,7 @@ Get RHODS Version [Arguments] ${force_fetch}=False IF "${RHODS_VERSION}" == "${None}" or "${force_fetch}"=="True" IF "${PRODUCT}" == "${None}" or "${PRODUCT}" == "RHODS" - ${RHODS_VERSION}= Run oc get csv -n ${OPERATOR_NAMESPACE} | grep "rhods-operator" | awk '{print $1}' | sed 's/rhods-operator.//' + ${RHODS_VERSION}= Run oc get csv -n ${OPERATOR_NAMESPACE} | grep "rhods-operator" | awk -F ' {2,}' '{print $3}' ELSE ${RHODS_VERSION}= Run oc get csv -n ${OPERATOR_NAMESPACE} | grep "opendatahub" | awk -F ' {2,}' '{print $3}' END