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):
|
def print_msg(domains, what_single, what_plural):
|
||||||
'''Print message in appropriate form about given domain(s)'''
|
'''Print message in appropriate form about given domain(s)'''
|
||||||
# pylint: disable=len-as-condition
|
if not domains:
|
||||||
if len(domains) == 0:
|
|
||||||
print("None of given VM {!s}".format(what_single))
|
print("None of given VM {!s}".format(what_single))
|
||||||
elif len(domains) == 1:
|
elif len(domains) == 1:
|
||||||
print("VM {!s} {!s}".format(domains[0], what_single))
|
print("VM {!s} {!s}".format(domains[0], what_single))
|
||||||
|
Loading…
Reference in New Issue
Block a user