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

Merge pull request #135 from rtripath89/feat_cmsh_version

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