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

Add debug variable

parent 70d3a450
No related branches found
No related tags found
6 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!51Fix acct create wait,!39WIP:Feat cod rmq,!38WIP: Feat cod rmq,!21Feat git commit agent
...@@ -21,6 +21,7 @@ def git_commit(ch, method, properties, body): ...@@ -21,6 +21,7 @@ def git_commit(ch, method, properties, body):
msg = json.loads(body) msg = json.loads(body)
username = msg['username'] username = msg['username']
ticketnum = msg.get('ticketnum', 'add-users-' + username.lower()) ticketnum = msg.get('ticketnum', 'add-users-' + username.lower())
DEBUG = msg.get('debug', False)
success = False success = False
try: try:
...@@ -53,6 +54,7 @@ def git_commit(ch, method, properties, body): ...@@ -53,6 +54,7 @@ def git_commit(ch, method, properties, body):
rc_rmq.publish_msg({ rc_rmq.publish_msg({
'routing_key': 'confirm.' + username, 'routing_key': 'confirm.' + username,
'msg': { 'msg': {
'debug': DEBUG,
'task': task, 'task': task,
'success': success 'success': success
} }
......
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