From 01b667427fa2076e4f766464fb966cfc541d1695 Mon Sep 17 00:00:00 2001 From: Axon Date: Mon, 14 Mar 2016 12:13:04 +0000 Subject: [PATCH] Nicely print list of excluded VMs Prints a sorted list of VMs not selected for backup, one name per line. (Fixes QubesOS/qubes-issues#1023) --- core/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/backup.py b/core/backup.py index 7ba8808f..77c81362 100644 --- a/core/backup.py +++ b/core/backup.py @@ -357,8 +357,8 @@ def backup_prepare(vms_list=None, exclude_list=None, vms_not_for_backup = [vm.name for vm in qvm_collection.values() if not vm.backup_content] - print_callback("VMs not selected for backup: %s" % " ".join( - vms_not_for_backup)) + print_callback("VMs not selected for backup:\n%s" % "\n".join(sorted( + vms_not_for_backup))) if there_are_running_vms: raise QubesException("Please shutdown all VMs before proceeding.")