From da6faf83bff58cc1080e23625ef339e554d5e462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 9 Aug 2016 05:11:30 +0200 Subject: [PATCH] qubes/tools: allow unpause multiple domains at once There is no reason to not allow it. --- qubes/tools/qvm_unpause.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubes/tools/qvm_unpause.py b/qubes/tools/qvm_unpause.py index 206efe81..b1694789 100644 --- a/qubes/tools/qvm_unpause.py +++ b/qubes/tools/qvm_unpause.py @@ -29,7 +29,7 @@ import qubes parser = qubes.tools.QubesArgumentParser( - vmname_nargs=1, + vmname_nargs='+', description='unpause a domain') @@ -41,7 +41,8 @@ def main(args=None): ''' args = parser.parse_args(args) - args.domains[0].unpause() + for domain in args.domains: + domain.unpause() return 0