Browse Source

Exclude installed_by_rpm when Restoring VM from Backup

VMs listed as from an rpm when they were really from a backup
lead to a missleading error message when deleting.

Fixes QubesOS/qubes-issues#4192
jimtahu 5 years ago
parent
commit
5f868b4794
1 changed files with 3 additions and 0 deletions
  1. 3 0
      qubesadmin/backup/restore.py

+ 3 - 0
qubesadmin/backup/restore.py

@@ -1940,6 +1940,9 @@ class BackupRestore(object):
                 # restore options
                 if prop in ['template', 'netvm', 'default_dispvm']:
                     continue
+                # exclude as this only applied before restoring
+                if prop in ['installed_by_rpm']:
+                    continue
                 self._restore_property(new_vm, prop, value)
 
             for feature, value in vm.features.items():