From ec51c2e2821f26d3fc2c4aae3557e29b500cf77e Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Mon, 9 Sep 2024 11:34:55 +0900 Subject: [PATCH] fix: modify code to get audience, not user_id Signed-off-by: Youngjin Jo --- src/spaceone/identity/service/workspace_group_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/identity/service/workspace_group_service.py b/src/spaceone/identity/service/workspace_group_service.py index 454ff70..183b3e1 100644 --- a/src/spaceone/identity/service/workspace_group_service.py +++ b/src/spaceone/identity/service/workspace_group_service.py @@ -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 @@ -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(