Do not serialize the domain pool config

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-04-27 19:39:02 +02:00
parent baaac858bc
commit ddf040ae64
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE
2 changed files with 6 additions and 1 deletions

View File

@ -708,7 +708,9 @@ class Qubes(qubes.PropertyHolder):
pools_xml = lxml.etree.Element('pools') pools_xml = lxml.etree.Element('pools')
for pool in self.pools.values(): for pool in self.pools.values():
pools_xml.append(pool.__xml__()) xml = pool.__xml__()
if xml is not None:
pools_xml.append(xml)
element.append(pools_xml) element.append(pools_xml)

View File

@ -64,6 +64,9 @@ class DomainPool(Pool):
def clone(self, source, target): def clone(self, source, target):
raise NotImplementedError raise NotImplementedError
def __xml__(self):
return None
class DomainVolume(Volume): class DomainVolume(Volume):
''' A volume provided by a block device in an domain ''' ''' A volume provided by a block device in an domain '''