Skip to content
Snippets Groups Projects
Unverified Commit 231a0df7 authored by Ravi Tripathi's avatar Ravi Tripathi Committed by GitHub
Browse files

Merge pull request #68 from eesaanatluri/fix-acct-create-agent

Remove exception block, it is handled in the callback function
parents 627bdbe4 38f40524
No related branches found
No related tags found
3 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq
......@@ -35,13 +35,10 @@ def create_account(msg):
cmd += f'"user; add {username}; set id {uid}; set email {email}; set commonname \\"{fullname}\\"; '
cmd += 'commit;"'
if not args.dry_run:
popen(cmd)
time.sleep(rcfg.Delay)
logger.info(f'Bright command to create user:{cmd}')
except Exception:
logger.exception("Fatal cmsh error:")
if not args.dry_run:
popen(cmd)
time.sleep(rcfg.Delay)
logger.info(f'Bright command to create user:{cmd}')
# Define your callback function
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