tools: minor fix for qvm-check
This commit is contained in:
parent
b61844ae5d
commit
6e84422062
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user