From adbca5c0f663f2bd010bead8ccc909d65d6b6543 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Mon, 18 Apr 2016 22:54:55 +0200 Subject: [PATCH] qubes/tools/qvm_run: fix --all/--passio exclusion --- qubes/tools/qvm_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/tools/qvm_run.py b/qubes/tools/qvm_run.py index 19d05c45..cfd8409b 100644 --- a/qubes/tools/qvm_run.py +++ b/qubes/tools/qvm_run.py @@ -84,8 +84,8 @@ def main(args=None): if args.color_output is None and args.filter_esc: args.color_output = '31' - if args.vm is qubes.tools.VM_ALL and args.passio: - parser.error('--all and --passio are mutually exclusive') + if len(args.vm) > 1 and args.passio: + parser.error('--passio cannot be used when more than 1 qube is chosen') if args.localcmd and not passio.passio: parser.error('--localcmd have no effect without --pass-io') if args.color_output and not args.filter_esc: