Skip to content
Snippets Groups Projects
Commit 207dae81 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Add a timestamp to issue being created for user ldif file.

parent 98aa9ab2
No related branches found
No related tags found
3 merge requests!147Merge previous default branch feat-cod-rmq into main,!101Add a timestamp to issue being created for user ldif file.,!104Merging feat-cod- to feat-prod
......@@ -6,6 +6,7 @@ import json
import rc_util
from rc_rmq import RCRMQ
import rabbit_config as rmq_cfg
import time
task = "git_commit"
......@@ -37,7 +38,8 @@ def git_commit(ch, method, properties, body):
username = msg["username"]
msg["task"] = task
msg["success"] = False
branch_name = "issue-add-users-" + username.lower()
branch_name = "issue-add-users-" + \
username.lower() + "-" + time.strftime("%Y%m%d_%H%M%S")
user_ldif = users_dir + f"/{username}.ldif"
group_ldif = groups_dir + f"/{username}.ldif"
......
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