Skip to content
Snippets Groups Projects
Commit 364d3e7e authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Adding the else statement

parent 90cae4b8
No related branches found
No related tags found
2 merge requests!147Merge previous default branch feat-cod-rmq into main,!135Adding the else statement
......@@ -35,11 +35,11 @@ def create_account(msg):
cmd += f'"user; add {username}; set userid {uid}; set email {email};'
cmd += f'set commonname \\"{fullname}\\"; '
cmd += 'commit;"'
cmd = "/cm/local/apps/cmd/bin/cmsh -c "
cmd += f'"user; add {username}; set id {uid}; set email {email};'
cmd += f'set commonname \\"{fullname}\\"; '
cmd += 'commit;"'
else:
cmd = "/cm/local/apps/cmd/bin/cmsh -c "
cmd += f'"user; add {username}; set id {uid}; set email {email};'
cmd += f'set commonname \\"{fullname}\\"; '
cmd += 'commit;"'
if not args.dry_run:
run(shlex.split(cmd))
......
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