From 3c54b187b580d3d5d685b78f6ff7dbffc1d3b399 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Mon, 4 May 2020 17:50:46 -0500 Subject: [PATCH] Add fullname field --- task_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/task_manager.py b/task_manager.py index 6921a9a..798781c 100644 --- a/task_manager.py +++ b/task_manager.py @@ -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'] -- GitLab