Skip to content

Commit

Permalink
Merge pull request #389 from yjinjo/master
Browse files Browse the repository at this point in the history
Extend old_user_ids and new_user_ids, not intialization
  • Loading branch information
yjinjo authored Oct 7, 2024
2 parents 58ed13e + 751436e commit 7a9188b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/identity/manager/workspace_group_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a9188b

Please sign in to comment.