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

Wait for the process to return before moving on.

parent 80e4ffb9
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,!51Fix acct create wait,!52Fix acct. creation and ldapsearch concurrency issue
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import sys import sys
import json import json
import ldap import ldap
import time
import logging import logging
import argparse import argparse
import rc_util import rc_util
...@@ -36,6 +37,7 @@ def create_account(msg): ...@@ -36,6 +37,7 @@ def create_account(msg):
if not args.dry_run: if not args.dry_run:
popen(cmd) popen(cmd)
time.sleep(1)
logger.info(f'Bright command to create user:{cmd}') logger.info(f'Bright command to create user:{cmd}')
except Exception: except Exception:
logger.exception("Fatal cmsh error:") logger.exception("Fatal cmsh error:")
......
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