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

Remove exception block, it is handled in the callback function

parent 2c3b9924
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,!68Remove exception block, it is handled in the callback function
...@@ -35,13 +35,10 @@ def create_account(msg): ...@@ -35,13 +35,10 @@ def create_account(msg):
cmd += f'"user; add {username}; set id {uid}; set email {email}; set commonname \\"{fullname}\\"; ' cmd += f'"user; add {username}; set id {uid}; set email {email}; set commonname \\"{fullname}\\"; '
cmd += 'commit;"' cmd += 'commit;"'
if not args.dry_run: if not args.dry_run:
popen(cmd) popen(cmd)
time.sleep(rcfg.Delay) time.sleep(rcfg.Delay)
logger.info(f'Bright command to create user:{cmd}') logger.info(f'Bright command to create user:{cmd}')
except Exception:
logger.exception("Fatal cmsh error:")
# Define your callback function # Define your callback function
def resolve_uid_gid(ch, method, properties, body): def resolve_uid_gid(ch, method, properties, body):
......
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