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): ...@@ -40,7 +40,7 @@ def manage_group(op, usernames, groupname, debug=False):
response = 0 response = 0
interface = "CLI" interface = "CLI"
executed_by, host = get_caller_info() updated_by, host = get_caller_info()
def handler(ch, method, properties, body): def handler(ch, method, properties, body):
if debug: if debug:
...@@ -78,7 +78,7 @@ def manage_group(op, usernames, groupname, debug=False): ...@@ -78,7 +78,7 @@ def manage_group(op, usernames, groupname, debug=False):
"groups": {f"{op}": [f"{groupname}"]}, "groups": {f"{op}": [f"{groupname}"]},
"username": user, "username": user,
"host": host, "host": host,
"executed_by": executed_by, "updated_by": updated_by,
"interface": interface, "interface": interface,
}, },
} }
......
...@@ -36,7 +36,7 @@ def insert_db(operation, groupname, msg): ...@@ -36,7 +36,7 @@ def insert_db(operation, groupname, msg):
"operation": op, "operation": op,
"date": datetime.now(), "date": datetime.now(),
"host": msg["host"], "host": msg["host"],
"executed_by": msg["executed_by"], "updated_by": msg["updated_by"],
"interface": msg["interface"], "interface": msg["interface"],
} }
) )
...@@ -53,7 +53,7 @@ def group_member(ch, method, properties, body): ...@@ -53,7 +53,7 @@ def group_member(ch, method, properties, body):
groups (dict): A dictionary with `add` or `remove` key. groups (dict): A dictionary with `add` or `remove` key.
add (list): A list of groups to be added for the user. add (list): A list of groups to be added for the user.
remove (list): A list of groups to be removed 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. host (str): Hostname where the request comes from.
interface (str): whether it's from CLI or WebUI. 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