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)
This commit is contained in:
parent
9ac0cf8577
commit
01b667427f
@ -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()
|
vms_not_for_backup = [vm.name for vm in qvm_collection.values()
|
||||||
if not vm.backup_content]
|
if not vm.backup_content]
|
||||||
print_callback("VMs not selected for backup: %s" % " ".join(
|
print_callback("VMs not selected for backup:\n%s" % "\n".join(sorted(
|
||||||
vms_not_for_backup))
|
vms_not_for_backup)))
|
||||||
|
|
||||||
if there_are_running_vms:
|
if there_are_running_vms:
|
||||||
raise QubesException("Please shutdown all VMs before proceeding.")
|
raise QubesException("Please shutdown all VMs before proceeding.")
|
||||||
|
Loading…
Reference in New Issue
Block a user