Fix livecd 'customize before install' traceback

This commit is contained in:
Cole Robinson 2010-05-06 13:54:16 -04:00
parent e100bd7dd3
commit b158f4e3aa

View File

@ -1990,7 +1990,10 @@ class vmmDomainVirtinst(vmmDomainBase):
return libvirt.VIR_DOMAIN_SHUTOFF
def get_xml(self):
return self._backend.get_config_xml()
xml = self._backend.get_config_xml()
if not xml:
xml = self._backend.get_config_xml(install=False)
return xml
def _get_inactive_xml(self):
return self.get_xml()