Skip to content

Commit

Permalink
Merge pull request #262 from ImMin5/feature-service-accont-auto-sync
Browse files Browse the repository at this point in the history
Modify error msg
  • Loading branch information
ImMin5 authored Apr 17, 2024
2 parents 95d588c + fb12858 commit 97a3507
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spaceone/identity/service/workspace_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def delete(self, params: WorkspaceDeleteRequest) -> None:
if params.force:
self._delete_related_resources_in_workspace(workspace_vo)
elif service_account_vos.count() > 0:
raise ERROR_EXIST_RESOURCE(key="Service Account", value=workspace_vo.name)
raise ERROR_EXIST_RESOURCE(child="Service Account", parent=workspace_vo.name)
else:
self._delete_related_resources_in_workspace(workspace_vo)

Expand Down Expand Up @@ -140,7 +140,7 @@ def enable(self, params: WorkspaceEnableRequest) -> Union[WorkspaceResponse, dic
@transaction(permission="identity:Workspace.write", role_types=["DOMAIN_ADMIN"])
@convert_model
def disable(
self, params: WorkspaceDisableRequest
self, params: WorkspaceDisableRequest
) -> Union[WorkspaceResponse, dict]:
"""Disable workspace
Args:
Expand Down Expand Up @@ -200,7 +200,7 @@ def check(self, params: WorkspaceCheckRequest) -> None:
@append_keyword_filter(["workspace_id", "name"])
@convert_model
def list(
self, params: WorkspaceSearchQueryRequest
self, params: WorkspaceSearchQueryRequest
) -> Union[WorkspacesResponse, dict]:
"""List workspaces
Args:
Expand Down

0 comments on commit 97a3507

Please sign in to comment.