From 6e844220620387f3f7d7166a9bf9c40a0e791bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 28 Apr 2017 02:14:55 +0200 Subject: [PATCH] tools: minor fix for qvm-check --- qubesmgmt/tools/qvm_check.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubesmgmt/tools/qvm_check.py b/qubesmgmt/tools/qvm_check.py index 1f292b0..ab7c869 100644 --- a/qubesmgmt/tools/qvm_check.py +++ b/qubesmgmt/tools/qvm_check.py @@ -40,8 +40,7 @@ parser.add_argument("--template", action="store_true", dest="template", def print_msg(domains, what_single, what_plural): '''Print message in appropriate form about given domain(s)''' - # pylint: disable=len-as-condition - if len(domains) == 0: + if not domains: print("None of given VM {!s}".format(what_single)) elif len(domains) == 1: print("VM {!s} {!s}".format(domains[0], what_single))