Skip to content

Commit

Permalink
Merge pull request #343 from yjinjo/master
Browse files Browse the repository at this point in the history
Modify parameter
  • Loading branch information
yjinjo authored Sep 6, 2024
2 parents a1d0757 + f981438 commit 8e5322a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/spaceone/identity/service/workspace_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def change_workspace_group(
if workspace_group_id:
self._add_workspace_to_group(workspace_id, workspace_group_id, domain_id)
elif previous_workspace_group_id:
self._remove_workspace_from_group(
previous_workspace_group_id, workspace_group_id, domain_id
)
self._remove_workspace_from_group(previous_workspace_group_id, domain_id)

if is_updatable:
workspace_vo = self.workspace_mgr.update_workspace_by_vo(
Expand Down Expand Up @@ -411,7 +409,7 @@ def _add_workspace_to_group(
return is_updatable

def _remove_workspace_from_group(
self, previous_workspace_group_id: str, workspace_group_id: str, domain_id: str
self, previous_workspace_group_id: str, domain_id: str
) -> None:
self._delete_role_bindings(previous_workspace_group_id, domain_id)

Expand Down

0 comments on commit 8e5322a

Please sign in to comment.