From 751436e56213dbb38dc527f9c7248c571c7cb3c3 Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Mon, 7 Oct 2024 10:21:48 +0900 Subject: [PATCH] fix: extend old_user_ids and new_user_ids, not append Signed-off-by: Youngjin Jo --- src/spaceone/identity/manager/workspace_group_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spaceone/identity/manager/workspace_group_manager.py b/src/spaceone/identity/manager/workspace_group_manager.py index 9b4c14f..9b22a24 100644 --- a/src/spaceone/identity/manager/workspace_group_manager.py +++ b/src/spaceone/identity/manager/workspace_group_manager.py @@ -137,12 +137,12 @@ def get_unique_user_ids( old_user_ids = [] if users := workspace_group_vo.users: unique_user_ids = {user["user_id"] for user in users} - old_user_ids = list(unique_user_ids) + old_user_ids.extend(list(unique_user_ids)) new_user_ids = [] for new_user_info in new_users_info_list: unique_user_ids = {new_user_info["user_id"]} - new_user_ids = list(unique_user_ids) + new_user_ids.extend(list(unique_user_ids)) return old_user_ids, new_user_ids