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

Merge pull request #134 from rtripath89/feat_cmsh_version

Adding a check for version of cmsh being used, to use appropriate com…
parents 6635f325 90cae4b8
No related branches found
No related tags found
1 merge request!147Merge previous default branch feat-cod-rmq into main
......@@ -30,6 +30,12 @@ def create_account(msg):
msg["success"] = False
# Bright command to create user
if str(rcfg.bright_cm_version).split(".")[0] == "8":
cmd = "/cm/local/apps/cmd/bin/cmsh -c "
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}\\"; '
......
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