From 8d55bf9016341aa4b62a6ae74718ec6c5c64b7df Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Tue, 29 Dec 2015 14:47:37 +0100 Subject: [PATCH] qubes/tools/qvm_run: do not colour autostart log messages --- qubes/tools/qvm_run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qubes/tools/qvm_run.py b/qubes/tools/qvm_run.py index 6cb39036..92579337 100644 --- a/qubes/tools/qvm_run.py +++ b/qubes/tools/qvm_run.py @@ -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,