Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 15, 2024
1 parent c71c2c2 commit 676b320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/models-library/src/models_library/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Cluster(BaseCluster):
)

@model_validator(mode="after")
def check_owner_has_access_rights(self) -> Self:
def check_owner_has_access_rights(self: Self) -> Self:
is_default_cluster = bool(self.id == DEFAULT_CLUSTER_ID)
owner_gid = self.owner

Expand All @@ -238,5 +238,5 @@ def check_owner_has_access_rights(self) -> Self:
):
msg = f"the cluster owner access rights are incorrectly set: {access_rights[owner_gid]}"
raise ValueError(msg)
self.access_rights = access_rights
object.__setattr__(self, "access_rights", access_rights)
return self

0 comments on commit 676b320

Please sign in to comment.