From 11bcc0a441cd6223898b6dff42149a9bcb247235 Mon Sep 17 00:00:00 2001 From: Harel Meir Date: Tue, 5 Mar 2024 14:47:00 +0200 Subject: [PATCH] Fix storageProfile access_modes property (#1705) Signed-off-by: Harel Meir --- ocp_resources/storage_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocp_resources/storage_profile.py b/ocp_resources/storage_profile.py index 0e34ec95c4..937e26d8bd 100644 --- a/ocp_resources/storage_profile.py +++ b/ocp_resources/storage_profile.py @@ -18,7 +18,7 @@ def claim_property_sets(self): return self.instance.status.get("claimPropertySets") def first_claim_property_set_access_modes(self): - return self.claim_property_sets[0].get("volumeMode") if self.claim_property_sets else None + return self.claim_property_sets[0].get("accessModes") if self.claim_property_sets else None def first_claim_property_set_volume_mode(self): return self.claim_property_sets[0].get("volumeMode") if self.claim_property_sets else None