From 207dae81cc5abd66721a06e9cef5db2d54b4b25e Mon Sep 17 00:00:00 2001
From: Ravi Tripathi <ravi89@uab.edu>
Date: Thu, 13 May 2021 10:58:10 -0500
Subject: [PATCH] Add a timestamp to issue being created for user ldif file.

---
 prod_rmq_agents/git_commit.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/prod_rmq_agents/git_commit.py b/prod_rmq_agents/git_commit.py
index 1eeeec7..68513a8 100644
--- a/prod_rmq_agents/git_commit.py
+++ b/prod_rmq_agents/git_commit.py
@@ -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"
 
-- 
GitLab