Skip to content
Snippets Groups Projects
Commit 4a853f16 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Avoid list reference when copying dict

parent 8608ad85
No related branches found
No related tags found
8 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!51Fix acct create wait,!44WIP: Update Feat task manager to match new messaging structure,!39WIP:Feat cod rmq,!38WIP: Feat cod rmq,!34WIP: Update task manager agent,!25Feature task manager
...@@ -25,7 +25,7 @@ record = { ...@@ -25,7 +25,7 @@ record = {
'notify': { 'notify': {
'notify_user': None 'notify_user': None
}, },
'delivery_tags': [] 'delivery_tags': None
} }
# Currently tracking users # Currently tracking users
...@@ -42,6 +42,7 @@ def task_manager(ch, method, properties, body): ...@@ -42,6 +42,7 @@ def task_manager(ch, method, properties, body):
if username not in tracking: if username not in tracking:
current = tracking[username] = record.copy() current = tracking[username] = record.copy()
current['delivery_tags'] = []
current['uid'] = msg.get('uid', -1) current['uid'] = msg.get('uid', -1)
current['gid'] = msg.get('gid', -1) current['gid'] = msg.get('gid', -1)
current['email'] = msg.get('email', '') current['email'] = msg.get('email', '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment