Only include --runas arg if we have a value

This commit is contained in:
Lance Edgar 2021-12-07 19:57:26 -06:00
parent 871dd35a3a
commit ff588b6a5c

View file

@ -467,8 +467,6 @@ And here is the output:
'--config={}/app/quiet.conf'.format(sys.prefix),
'--progress',
'--progress-socket=127.0.0.1:{}'.format(port),
'--runas={}'.format(runas),
subcommand,
]
else:
cmd = [
@ -476,10 +474,16 @@ And here is the output:
'bin/{}'.format(command),
'-c', 'app/quiet.conf',
'-P',
'--runas', runas,
subcommand,
]
if runas:
if typ == 'true':
cmd.apend('--runas={}'.format(runas))
else:
cmd.extend(['--runas', runas])
cmd.append(subcommand)
cmd.extend(data['models'])
if data['create']: