qubes/dispvm: do not clone 'template' property from base VM

template should point at the base VM itself.
This commit is contained in:
Marek Marczykowski-Górecki 2016-08-17 02:14:19 +02:00
parent 53b2b30c0a
commit 46791e05f4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -145,7 +145,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
dispid=app.domains.get_new_unused_dispid(), dispid=app.domains.get_new_unused_dispid(),
template=app.domains[appvm], template=app.domains[appvm],
**kwargs) **kwargs)
dispvm.clone_properties(app.domains[appvm]) # exclude template
proplist = [prop for prop in dispvm.property_list()
if prop.clone and prop.__name__ not in ['template']]
dispvm.clone_properties(app.domains[appvm], proplist=proplist)
dispvm.create_on_disk() dispvm.create_on_disk()
app.save() app.save()
return dispvm return dispvm