diff --git a/rc_util.py b/rc_util.py index 4281437cc2222ba66f8723076e76bd05020f9805..2b39ae522a1c2a28111e3a0e047938a48da028bd 100644 --- a/rc_util.py +++ b/rc_util.py @@ -4,11 +4,12 @@ import json rc_rmq = RCRMQ({'exchange': 'RegUsr', 'exchange_type': 'topic'}) tasks = {'ohpc_account': None, 'ood_account': None, 'slurm_account': None} -def add_account(username, full='', reason=''): +def add_account(username, email, full='', reason=''): rc_rmq.publish_msg({ 'routing_key': 'request.' + username, 'msg': { "username": username, + "email": email, "fullname": full, "reason": reason }