Skip to content
Snippets Groups Projects
Unverified Commit c776a1d8 authored by Ravi Tripathi's avatar Ravi Tripathi Committed by GitHub
Browse files

Merge pull request #101 from rtripath89/feat_git_issue_timestamp

Add a timestamp to issue being created for user ldif file.
parents 98aa9ab2 207dae81
No related branches found
No related tags found
2 merge requests!147Merge previous default branch feat-cod-rmq into main,!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