qubes/tools/qvm_run: do not colour autostart log messages
This commit is contained in:
parent
69e0b94c74
commit
8d55bf9016
@ -102,13 +102,16 @@ def main(args=None):
|
|||||||
|
|
||||||
retcode = 0
|
retcode = 0
|
||||||
for vm in args.vm:
|
for vm in args.vm:
|
||||||
|
if args.autostart and not vm.is_running():
|
||||||
|
vm.start()
|
||||||
|
|
||||||
if args.color_output:
|
if args.color_output:
|
||||||
sys.stdout.write('\033[0;{}m'.format(args.color_output))
|
sys.stdout.write('\033[0;{}m'.format(args.color_output))
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
retcode = max(retcode, vm.run(args.cmd,
|
retcode = max(retcode, vm.run(args.cmd,
|
||||||
user=args.user,
|
user=args.user,
|
||||||
autostart=args.autostart,
|
|
||||||
passio=args.passio,
|
passio=args.passio,
|
||||||
localcmd=args.localcmd,
|
localcmd=args.localcmd,
|
||||||
gui=args.gui,
|
gui=args.gui,
|
||||||
|
Loading…
Reference in New Issue
Block a user