Skip to content

Commit

Permalink
capitalize privileges for grants on all
Browse files Browse the repository at this point in the history
  • Loading branch information
rcohngru-ab-carval committed Jan 3, 2025
1 parent 1303c08 commit 3169fe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions titan/resources/grant.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ def __post_init__(self):
super().__post_init__()
if self.in_type not in [ResourceType.DATABASE, ResourceType.SCHEMA]:
raise ValueError(f"in_type must be either DATABASE or SCHEMA, not {self.in_type}")
if isinstance(self.priv, str):
self.priv = self.priv.upper()
self.to_type = self.to.resource_type


Expand Down

0 comments on commit 3169fe7

Please sign in to comment.