From a1e2888e9657b4eaf6e588e3b6a30f95982f248d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 9 Aug 2016 05:10:47 +0200 Subject: [PATCH] qubes/tools: fix messages in qvm-check --- qubes/tools/qvm_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/tools/qvm_check.py b/qubes/tools/qvm_check.py index 15eef5ea..834140ca 100644 --- a/qubes/tools/qvm_check.py +++ b/qubes/tools/qvm_check.py @@ -41,7 +41,7 @@ parser.add_argument("--template", action="store_true", dest="template", def print_msg(domains, what_single, what_plural): if len(domains) == 0: print("None of given VM {!s}".format(what_single)) - if len(domains) == 1: + elif len(domains) == 1: print("VM {!s} {!s}".format(domains[0], what_single)) else: txt = ", ".join([vm.name for vm in domains]) @@ -59,7 +59,7 @@ def main(args=None): elif args.paused: paused = [vm for vm in domains if vm.is_paused()] if args.verbose: - print_msg(paused, "is paused", "are running") + print_msg(paused, "is paused", "are paused") return 0 if paused else 1 elif args.template: template = [vm for vm in domains if isinstance(vm,