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

Update add_account in rc_util

parent 495e522a
No related branches found
No related tags found
1 merge request!18Redesign RabbitMQ
......@@ -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
}
......
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