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

Set default ticketnum

According to UserAdd-Template.md,
 `ticketnum="add-users-`printf "%.40s\n"  "$users" | tr ' ' '-'`"`
parent fda4d5c4
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
......@@ -20,7 +20,7 @@ ldapsearch = sh.Command('ldapsearch')
def git_commit(ch, method, properties, body):
msg = json.loads(body)
username = msg['username']
ticketnum = msg['ticketnum']
ticketnum = msg.get('ticketnum', 'add-users-' + username.lower())
success = False
try:
......
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