Skip to content
Snippets Groups Projects
Commit dbc981fe authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Make the user query a python formatted string

parent acbd96b4
No related branches found
No related tags found
4 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq,!64Fix acct create agent
......@@ -53,7 +53,7 @@ def resolve_uid_gid(ch, method, properties, body):
# Determine next available UID
try:
user_exists_cmd = "/usr/bin/getent passwd {username}"
user_exists_cmd = f"/usr/bin/getent passwd {username}"
user_exists = popen(user_exists_cmd).read().rstrip()
if user_exists:
......
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