verify-only avoid dom0 handler

This commit is contained in:
Christopher Laprise 2017-12-07 22:36:58 -05:00
parent f86c640d65
commit d84423b0b2
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -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)