mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user