Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
207dae81
Commit
207dae81
authored
4 years ago
by
Ravi Tripathi
Browse files
Options
Downloads
Patches
Plain Diff
Add a timestamp to issue being created for user ldif file.
parent
98aa9ab2
No related branches found
No related tags found
3 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!101
Add a timestamp to issue being created for user ldif file.
,
!104
Merging feat-cod- to feat-prod
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prod_rmq_agents/git_commit.py
+3
-1
3 additions, 1 deletion
prod_rmq_agents/git_commit.py
with
3 additions
and
1 deletion
prod_rmq_agents/git_commit.py
+
3
−
1
View file @
207dae81
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment