Skip to content

Commit

Permalink
Changed oc command to get RHODS version on Common.robot (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzgom authored Oct 26, 2023
1 parent e31af11 commit 8d5bb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ods_ci/tests/Resources/Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d5bb5b

Please sign in to comment.