Skip to content

Commit

Permalink
Use only_major_minor to validate Csi sidecar count (#10674)
Browse files Browse the repository at this point in the history
Signed-off-by: prsurve <prsurve@redhat.com>
  • Loading branch information
prsurve authored Oct 22, 2024
1 parent 224b88e commit 93512c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2781,9 +2781,9 @@ def validate_csi_sidecar(self):
)
timeout = 10
ocs_version = version.get_ocs_version_from_csv(only_major_minor=True)
if ocs_version <= version.get_semantic_version("4.11"):
if ocs_version <= version.get_semantic_version("4.11", only_major_minor=True):
rbd_sidecar_count = constants.RBD_SIDECAR_COUNT
elif ocs_version <= version.get_semantic_version("4.16"):
elif ocs_version <= version.get_semantic_version("4.16", only_major_minor=True):
rbd_sidecar_count = constants.RBD_SIDECAR_COUNT_4_12
else:
rbd_sidecar_count = constants.RBD_SIDECAR_COUNT_4_17
Expand Down

0 comments on commit 93512c4

Please sign in to comment.