Skip to content
Snippets Groups Projects
Commit 45a470d9 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

replaced script call from flask_producer.py to create_account.py

parent f0f1d300
No related branches found
No related tags found
1 merge request!6Flask v0.1
...@@ -24,6 +24,6 @@ def celery_create_account(username, fullname, reason, session): ...@@ -24,6 +24,6 @@ def celery_create_account(username, fullname, reason, session):
print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
send_msg('creating account', room) send_msg('creating account', room)
print(username) print(username)
subprocess.call(["/opt/rabbitmq_agents/flask_producer.py", "ohpc_account_create", username]) subprocess.call(["/opt/rabbitmq_agents/create_account.py", username, email, fullname, reason])
print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tAccount successfully created for ' + username) print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tAccount successfully created for ' + username)
send_msg('account ready', room) send_msg('account ready', room)
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