From c99965ff5c2c5740d915e6ca8c5350b18e5496f1 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 29 Feb 2012 03:16:31 +0100 Subject: [PATCH] dom0/qvm-backup: force correct default exclude_list Treat "None" also as empty list. --- dom0/qvm-core/qubesutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom0/qvm-core/qubesutils.py b/dom0/qvm-core/qubesutils.py index 483d259d..4c2456ba 100644 --- a/dom0/qvm-core/qubesutils.py +++ b/dom0/qvm-core/qubesutils.py @@ -323,6 +323,9 @@ def backup_prepare(base_backup_dir, vms_list = None, exclude_list = [], print_ca files_to_backup = file_to_backup (qubes_store_filename) + if exclude_list is None: + exclude_list = [] + if vms_list is None: qvm_collection = QubesVmCollection() qvm_collection.lock_db_for_reading()