Skip to content
Snippets Groups Projects

Feat check account existence

Merged Mitchell Moore requested to merge feat-check-account-existence into master
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -57,11 +57,10 @@ def create_app(config_name):
tempString = 'ssh ohpc "sudo /opt/ohpc_user_create/user_create ' + username + ' \'' + fullname + '\'"'
print(tempString, file=sys.stdout)
tempString_run = subprocess.call(tempString)
tempString_run = subprocess.check_output([tempString], shell=True)
if tempString_run == 0:
output = subprocess.check_output([tempString], shell=True)
print(output.split('\n'), file=sys.stdout)
print(tempString_run.split('\n'), file=sys.stdout)
return redirect(return_url, 302)
else:
Loading