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

Cole Robinson crobinso at redhat.com
Wed May 17 16:25:28 UTC 2017


On 05/17/2017 04:16 AM, Pavel Hrdina wrote:
> 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):
> 

ACK

Thanks,
Cole




More information about the virt-tools-list mailing list