Only include --runas
arg if we have a value
This commit is contained in:
parent
871dd35a3a
commit
ff588b6a5c
|
@ -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']:
|
||||
|
|
Loading…
Reference in a new issue