From d84423b0b237b19a4648c985f39c412cdc06ea9f Mon Sep 17 00:00:00 2001 From: Christopher Laprise Date: Thu, 7 Dec 2017 22:36:58 -0500 Subject: [PATCH] verify-only avoid dom0 handler --- qubesadmin/backup/restore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesadmin/backup/restore.py b/qubesadmin/backup/restore.py index 745e4a1..bdb1ccf 100644 --- a/qubesadmin/backup/restore.py +++ b/qubesadmin/backup/restore.py @@ -1775,7 +1775,8 @@ class BackupRestore(object): restore_info['dom0'].good_to_go: vms_dirs.append(os.path.dirname(restore_info['dom0'].subdir)) vms_size += restore_info['dom0'].size - handlers[restore_info['dom0'].subdir] = (self._handle_dom0, None) + if not self.options.verify_only: + handlers[restore_info['dom0'].subdir] = (self._handle_dom0, None) try: self._restore_vm_data(vms_dirs=vms_dirs, vms_size=vms_size, handlers=handlers)