virtinst.diskbackend: set pool after creating StorageVolume

The _pool_xml in StorageVolume is used unconditionally, we need to
set it right away.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1450311

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2017-05-17 09:18:49 +02:00
parent c5627b1fa9
commit 713e07d4a2

View File

@@ -547,6 +547,7 @@ class StorageBackend(_StorageBase):
if self._vol_xml is None:
self._vol_xml = StorageVolume(self._conn,
parsexml=self._vol_object.XMLDesc(0))
self._vol_xml.pool = self._parent_pool
return self._vol_xml
def get_parent_pool(self):