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
This commit is contained in:
jimtahu 2018-09-20 22:21:55 -05:00
parent bf240cc928
commit 5f868b4794
No known key found for this signature in database
GPG Key ID: 2732DBEC0BE2336C

View File

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