Skip to content

Commit

Permalink
qvm-backup-restore --verify-only: don't overwrite VM properties
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Dec 10, 2022
1 parent 92ac846 commit 836465b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions qubesadmin/backup/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2042,13 +2042,17 @@ def _restore_vms_metadata(self, restore_info):
continue

# restore this property early to be ready for dependent DispVMs
prop = 'template_for_dispvms'
value = vm.properties.get(prop, None)
if value is not None:
self._restore_property(new_vm, prop, value)
if not self.options.verify_only:
prop = 'template_for_dispvms'
value = vm.properties.get(prop, None)
if value is not None:
self._restore_property(new_vm, prop, value)

restore_info[vm.name].restored_vm = new_vm

if self.options.verify_only:
return

for vm in vms.values():
if self.canceled:
return
Expand Down

0 comments on commit 836465b

Please sign in to comment.