Skip to content

Commit

Permalink
fix: modify workspace_group_info type
Browse files Browse the repository at this point in the history
Signed-off-by: Youngjin Jo <[email protected]>
  • Loading branch information
yjinjo committed Sep 30, 2024
1 parent 0325356 commit e0e5c09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spaceone/identity/service/user_profile_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ def get_workspace_groups(

workspace_group_user_ids = []
for workspace_group_info in workspace_group_infos:
workspace_group_info = workspace_group_info.to_dict()
if not isinstance(workspace_group_info, dict):
workspace_group_info = workspace_group_info.to_dict()
if users := workspace_group_info.get("users", []) or []:
for user in users:
if isinstance(user, dict):
Expand Down

0 comments on commit e0e5c09

Please sign in to comment.