Skip to content
Snippets Groups Projects
Commit cd9cd5b4 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Change executed_by to updated_by

parent f6c04588
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ def manage_group(op, usernames, groupname, debug=False):
response = 0
interface = "CLI"
executed_by, host = get_caller_info()
updated_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,
"executed_by": executed_by,
"updated_by": updated_by,
"interface": interface,
},
}
......
......@@ -36,7 +36,7 @@ def insert_db(operation, groupname, msg):
"operation": op,
"date": datetime.now(),
"host": msg["host"],
"executed_by": msg["executed_by"],
"updated_by": msg["updated_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.
executed_by (str): The user who request the change.
updated_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.
......
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