Skip to content
Snippets Groups Projects

Feat misc. code cleanup

2 files
+ 4
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
2
@@ -30,10 +30,9 @@ else:
@@ -30,10 +30,9 @@ else:
def git_commit(ch, method, properties, body):
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())
msg['task'] = task
msg['task'] = task
msg['success'] = False
msg['success'] = False
branch_name = 'issue-' + ticketnum
branch_name = 'issue-add-users-' + username.lower()
user_ldif = users_dir + f'/{username}.ldif'
user_ldif = users_dir + f'/{username}.ldif'
group_ldif = groups_dir + f'/{username}.ldif'
group_ldif = groups_dir + f'/{username}.ldif'
Loading