From cfb5c62d86b549c250318835cebc63ce2f4f1be5 Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Mon, 30 Sep 2024 14:51:15 +0900 Subject: [PATCH] fix: modify code when workspace group users is None Signed-off-by: Youngjin Jo --- src/spaceone/identity/service/workspace_group_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spaceone/identity/service/workspace_group_service.py b/src/spaceone/identity/service/workspace_group_service.py index a05a342..b439e7d 100644 --- a/src/spaceone/identity/service/workspace_group_service.py +++ b/src/spaceone/identity/service/workspace_group_service.py @@ -564,6 +564,8 @@ def add_user_name_and_state_to_users( "state": user_vo.state, } + if wg_users is None: + wg_users = [] users = [] for user in wg_users: if isinstance(user, dict):