Skip to content
Snippets Groups Projects
Unverified Commit 79793636 authored by Krish Moodbidri's avatar Krish Moodbidri Committed by GitHub
Browse files

added certify_account function (#118)

parent 59e37902
No related branches found
No related tags found
1 merge request!147Merge previous default branch feat-cod-rmq into main
...@@ -63,6 +63,19 @@ def add_account(username, queuename, email, full="", reason=""): ...@@ -63,6 +63,19 @@ def add_account(username, queuename, email, full="", reason=""):
) )
rc_rmq.disconnect() rc_rmq.disconnect()
def certify_account(username, queuename, state="ok", service="all"):
rc_rmq.publish_msg(
{
"routing_key": "acctmgr.request." + queuename,
"msg": {
"username": username,
"service": service,
"state": state,
"queuename": queuename,
},
}
)
rc_rmq.disconnect()
def worker(ch, method, properties, body): def worker(ch, method, properties, body):
msg = json.loads(body) msg = json.loads(body)
......
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