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

Add fullname field

parent 39f3f082
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
......@@ -14,6 +14,7 @@ record = {
'uid': -1,
'gid': -1,
'email': '',
'fullname': '',
'last_update': datetime.now(),
'request': {
'get_next_uid_gid': None
......@@ -51,6 +52,7 @@ def task_manager(ch, method, properties, body):
current['uid'] = msg.get('uid', -1)
current['gid'] = msg.get('gid', -1)
current['email'] = msg.get('email', '')
current['fullname'] = msg.get('fullname', '')
logger.debug(f'Tracking user {username}')
else:
......@@ -103,6 +105,7 @@ def task_manager(ch, method, properties, body):
'routing_key': routing_key,
'msg': {
'username': username,
'fullname': current['fullname'],
'email': current['email'],
'uid': current['uid'],
'gid': current['gid']
......
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