[virt-manager PATCH v2] virtinst.diskbackend: set pool after creating StorageVolume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux