Skip to content

Commit

Permalink
Hot fix: CNV version (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat authored Oct 14, 2024
1 parent c097e3e commit c00b996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark_runner/common/oc/oc.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def get_cnv_version(self):
This method returns cnv version
:return:
"""
return self.run(f"{self.__cli} get csv -n openshift-cnv $({self.__cli} get csv -n openshift-cnv --no-headers | awk '{{ print $1; }}') -o jsonpath='{{.spec.version}}'")
return self.run(f"{self.__cli} get csv -n openshift-cnv -o json | jq -r '.items[] | select(.metadata.name | startswith(\"kubevirt-hyperconverged-operator\")) | .spec.version'")

def get_odf_version(self):
"""
Expand Down

0 comments on commit c00b996

Please sign in to comment.