dom0/core: include pcidevs and include_in_backups in cloned attrs

Preserve it in qvm-clone and backup-restore
This commit is contained in:
Marek Marczykowski 2012-04-20 03:12:06 +02:00
parent 798e3d8c96
commit 0633e35fa6

View File

@ -1000,7 +1000,7 @@ class QubesVm(object):
def get_clone_attrs(self): def get_clone_attrs(self):
return ['kernel', 'uses_default_kernel', 'netvm', 'uses_default_netvm', \ return ['kernel', 'uses_default_kernel', 'netvm', 'uses_default_netvm', \
'memory', 'maxmem', 'kernelopts', 'uses_default_kernelopts', 'services', 'vcpus', \ 'memory', 'maxmem', 'kernelopts', 'uses_default_kernelopts', 'services', 'vcpus', \
'_mac'] '_mac', 'pcidevs', 'include_in_backups']
def clone_attrs(self, src_vm): def clone_attrs(self, src_vm):
for prop in self.get_clone_attrs(): for prop in self.get_clone_attrs():