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