diff --git a/virtinst/VirtualDisk.py b/virtinst/VirtualDisk.py index 72bfc846f..d98879fa6 100644 --- a/virtinst/VirtualDisk.py +++ b/virtinst/VirtualDisk.py @@ -589,9 +589,9 @@ class VirtualDisk(VirtualDevice): self._storage_backend = backend def _refresh_backend_settings(self): - self.refresh_xml_prop("type") - self.refresh_xml_prop("driver_name") - self.refresh_xml_prop("driver_type") + self._refresh_xml_prop("type") + self._refresh_xml_prop("driver_name") + self._refresh_xml_prop("driver_type") self._xmlpath = self.path def __managed_storage(self): @@ -707,6 +707,13 @@ class VirtualDisk(VirtualDevice): self.type == self.TYPE_BLOCK): self.driver_io = self.IO_MODE_NATIVE + def _cleanup_xml(self, xml): + # Remove block if path is None. Might not be strictly + # requires but it's what we've always done + if not self.path and " block if path is None. Might not be strictly - # requires but it's what we've always done - if not self.path and "