Skip to content
Snippets Groups Projects

Adding the else statement

Merged Ravi Tripathi requested to merge github/fork/rtripath89/feat_cmsh_version into feat-cod-rmq
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -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))
Loading