Skip to content

Commit

Permalink
fix: apply system token for internal api call
Browse files Browse the repository at this point in the history
  • Loading branch information
stat-kwon committed Jan 6, 2024
1 parent e8ad8de commit 122f861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spaceone/secret/manager/identity_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ def __init__(self, *args, **kwargs):
)

def check_workspace(self, workspace_id, domain_id):
system_token = self.transaction.get_meta("token")
return self.identity_conn.dispatch(
"Workspace.check",
{"workspace_id": workspace_id, "domain_id": domain_id},
token=system_token,
)

def get_trusted_account(self, trusted_account_id):
Expand Down

0 comments on commit 122f861

Please sign in to comment.