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

Adding a check for version of cmsh being used, to use appropriate command for adding user

parent 6635f325
No related branches found
No related tags found
2 merge requests!147Merge previous default branch feat-cod-rmq into main,!134Adding a check for version of cmsh being used, to use appropriate com…
......@@ -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