qubes/tools/qvm_run: do not colour autostart log messages

This commit is contained in:
Wojtek Porczyk 2015-12-29 14:47:37 +01:00
parent 69e0b94c74
commit 8d55bf9016

View File

@ -102,13 +102,16 @@ def main(args=None):
retcode = 0
for vm in args.vm:
if args.autostart and not vm.is_running():
vm.start()
if args.color_output:
sys.stdout.write('\033[0;{}m'.format(args.color_output))
sys.stdout.flush()
try:
retcode = max(retcode, vm.run(args.cmd,
user=args.user,
autostart=args.autostart,
passio=args.passio,
localcmd=args.localcmd,
gui=args.gui,