Skip to content

Commit

Permalink
Fix storageProfile access_modes property (#1705)
Browse files Browse the repository at this point in the history
Signed-off-by: Harel Meir <hmeir@redhat.com>
  • Loading branch information
hmeir authored Mar 5, 2024
1 parent e38febc commit 11bcc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocp_resources/storage_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11bcc0a

Please sign in to comment.