qvm-check: fix from Marek's comment

This commit is contained in:
Frédéric Pierret (fepitre) 2019-08-08 14:29:31 +02:00
parent 7d93377b78
commit eb461e4c3b
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -48,7 +48,7 @@ def print_msg(log, domains, status):
if not domains:
log.info("None of qubes: {!s}".format(', '.join(status)))
else:
for vm in sorted(domains):
for vm in sorted(list(domains)):
log.info("{!s}: {!s}".format(vm.name, ', '.join(status)))
@ -89,8 +89,6 @@ def main(args=None, app=None):
filtered_domains = filtered_domains.intersection(
[vm for vm in domains if check(vm)])
filtered_domains = list(filtered_domains)
if set(domains) & set(filtered_domains) != set(domains):
if not filtered_domains:
return_code = 1