Skip to content

Commit

Permalink
fix 0.6
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Osypenko <[email protected]>
  • Loading branch information
DanielOsypenko committed Jul 22, 2024
1 parent 3b3ed7c commit 1466204
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions ocs_ci/deployment/hosted_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,15 +1229,14 @@ def storage_claim_exists_rbd(self):
Returns:
bool: True if storage class claim for RBD exists, False otherwise
"""
if (
get_semantic_version(
config.ENV_DATA.get("clusters")
.get(self.name)
.get("hosted_odf_version"),
True,
)
< version.VERSION_4_16
):

hosted_odf_version = (
config.ENV_DATA.get("clusters").get(self.name).get("hosted_odf_version")
)
if "latest" in hosted_odf_version:
hosted_odf_version = hosted_odf_version.split("-")[-1]

if get_semantic_version(hosted_odf_version, True) < version.VERSION_4_16:
ocp = OCP(
kind=constants.STORAGECLASSCLAIM,
namespace=self.namespace_client,
Expand Down

0 comments on commit 1466204

Please sign in to comment.