Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Bo-Chun Chen
rabbitmq_agents
Commits
cd9cd5b4
Commit
cd9cd5b4
authored
11 months ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Change executed_by to updated_by
parent
f6c04588
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
group_manager.py
+2
-2
2 additions, 2 deletions
group_manager.py
prod_rmq_agents/group_member.py
+2
-2
2 additions, 2 deletions
prod_rmq_agents/group_member.py
with
4 additions
and
4 deletions
group_manager.py
+
2
−
2
View file @
cd9cd5b4
...
...
@@ -40,7 +40,7 @@ def manage_group(op, usernames, groupname, debug=False):
response
=
0
interface
=
"
CLI
"
execu
ted_by
,
host
=
get_caller_info
()
upda
ted_by
,
host
=
get_caller_info
()
def
handler
(
ch
,
method
,
properties
,
body
):
if
debug
:
...
...
@@ -78,7 +78,7 @@ def manage_group(op, usernames, groupname, debug=False):
"
groups
"
:
{
f
"
{
op
}
"
:
[
f
"
{
groupname
}
"
]},
"
username
"
:
user
,
"
host
"
:
host
,
"
execu
ted_by
"
:
execu
ted_by
,
"
upda
ted_by
"
:
upda
ted_by
,
"
interface
"
:
interface
,
},
}
...
...
This diff is collapsed.
Click to expand it.
prod_rmq_agents/group_member.py
+
2
−
2
View file @
cd9cd5b4
...
...
@@ -36,7 +36,7 @@ def insert_db(operation, groupname, msg):
"
operation
"
:
op
,
"
date
"
:
datetime
.
now
(),
"
host
"
:
msg
[
"
host
"
],
"
execu
ted_by
"
:
msg
[
"
execu
ted_by
"
],
"
upda
ted_by
"
:
msg
[
"
upda
ted_by
"
],
"
interface
"
:
msg
[
"
interface
"
],
}
)
...
...
@@ -53,7 +53,7 @@ def group_member(ch, method, properties, body):
groups (dict): A dictionary with `add` or `remove` key.
add (list): A list of groups to be added for the user.
remove (list): A list of groups to be removed for the user.
execu
ted_by (str): The user who request the change.
upda
ted_by
(str): The user who request the change.
host (str): Hostname where the request comes from.
interface (str): whether it
'
s from CLI or WebUI.
...
...
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