tools: minor fix for qvm-check

This commit is contained in:
Marek Marczykowski-Górecki 2017-04-28 02:14:55 +02:00
parent b61844ae5d
commit 6e84422062
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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))