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