Skip to content

Commit

Permalink
feat: modify identity.ServiceAccount name format
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Mar 13, 2024
1 parent a087303 commit b779305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cloudforet/search/conf/search_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"response": {
"resource_id": "service_account_id",
"name": "{account} ({name})",
"name": "{name} ({account})",
"aliases": [
{"data.account_id": "account"},
{"data.subscription_id": "account"},
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"inventory.CloudService": {
"request": {
"search": ["name", "ip_addresses", "account", "instance_type"],
"search": ["name", "ip_addresses", "account"],
"filter": [{"state": "ACTIVE"}],
},
"response": {
Expand Down
2 changes: 2 additions & 0 deletions src/cloudforet/search/service/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def search(self, params: ResourceSearchRequest) -> Union[ResourcesResponse, dict
workspaces = self._get_accessible_workspaces(
domain_id, role_type, workspaces, user_id
)
else:
params.workspace_id = None
else:
if all_workspaces or workspaces:
workspaces = self._get_accessible_workspaces(
Expand Down

0 comments on commit b779305

Please sign in to comment.