Skip to content

Commit

Permalink
fix: modify code to get audience, not user_id
Browse files Browse the repository at this point in the history
Signed-off-by: Youngjin Jo <[email protected]>
  • Loading branch information
yjinjo committed Sep 9, 2024
1 parent 5d709a0 commit ec51c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/identity/service/workspace_group_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def create(
WorkspaceGroupResponse:
"""
params_data = params.dict()
params_data["created_by"] = self.transaction.get_meta("authorization.user_id")
params_data["created_by"] = self.transaction.get_meta("authorization.audience")

workspace_group_vo = self.workspace_group_mgr.create_workspace_group(
params_data
Expand Down Expand Up @@ -116,7 +116,7 @@ def update(
)

params_data = params.dict()
params_data["updated_by"] = self.transaction.get_meta("authorization.user_id")
params_data["updated_by"] = self.transaction.get_meta("authorization.audience")
params_data["updated_at"] = datetime.utcnow()

workspace_group_vo = self.workspace_group_mgr.update_workspace_group_by_vo(
Expand Down

0 comments on commit ec51c2e

Please sign in to comment.