Skip to content

Commit

Permalink
chore: change variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Youngjin Jo <[email protected]>
  • Loading branch information
yjinjo committed Aug 29, 2024
1 parent e722b84 commit 56d093d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WorkspaceGroupUserRemoveRequest(BaseModel):
class WorkspaceGroupUserUpdateRoleRequest(BaseModel):
workspace_group_id: str
role_id: str
params_user_id: str
target_user_id: str
user_id: str
domain_id: str

Expand Down
4 changes: 2 additions & 2 deletions src/spaceone/identity/service/workspace_group_user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def update_role(
params (WorkspaceGroupUserUpdateRoleRequest): {
'workspace_group_id': 'str', # required
'role_id': 'str', # required
'params_user_id': 'str', # required
'target_user_id': 'str', # required
'user_id': 'str', # injected from auth (required)
'domain_id': 'str', # injected from auth (required)
}
Expand All @@ -287,7 +287,7 @@ def update_role(
workspace_group_vo = self.workspace_group_mgr.get_workspace_group(
params.workspace_group_id, params.domain_id
)
user_vo = self.user_mgr.get_user(params.params_user_id, params.domain_id)
user_vo = self.user_mgr.get_user(params.target_user_id, params.domain_id)
if user_vo.state in ["DISABLED", "DELETED"]:
_LOGGER.error(f"User ID {user_vo.user_id}'s state is {user_vo.state}.")
raise ERROR_NOT_ALLOWED_USER_STATE(
Expand Down

0 comments on commit 56d093d

Please sign in to comment.