[virt-tools-list] [virt-manager PATCH v2] virtinst.diskbackend: set pool after creating StorageVolume
Pavel Hrdina
phrdina at redhat.com
Wed May 17 08:16:00 UTC 2017
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 at redhat.com>
---
virtinst/diskbackend.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/virtinst/diskbackend.py b/virtinst/diskbackend.py
index 41c712ee..678548ac 100644
--- a/virtinst/diskbackend.py
+++ b/virtinst/diskbackend.py
@@ -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):
--
2.13.0
More information about the virt-tools-list
mailing list