[virt-tools-list] [PATCH virt-manager] createpool.py: fix creation of gluster pools

Cole Robinson crobinso at redhat.com
Sun Jun 15 15:55:37 UTC 2014


On 06/11/2014 09:01 AM, Giuseppe Scrivano wrote:
> It fixes this exception:
> 
> Traceback (most recent call last):
>   File "virt-manager/virtManager/createpool.py", line 454, in page_changed
>     self.set_page(page_number)
>   File "virt-manager/virtManager/createpool.py", line 451, in set_page
>     self.show_options_by_pool()
>   File "virt-manager/virtManager/createpool.py", line 292, in show_options_by_pool
>     self.widget("pool-source-name").get_child().set_text(
> AttributeError: 'Entry' object has no attribute 'get_child'
> 
> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
> ---
>  virtManager/createpool.py | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/virtManager/createpool.py b/virtManager/createpool.py
> index b28f06a..e75ca5b 100644
> --- a/virtManager/createpool.py
> +++ b/virtManager/createpool.py
> @@ -289,8 +289,7 @@ class vmmCreatePool(vmmGObjectUI):
>          self.widget("pool-build").set_active(builddef)
>  
>          if src_name:
> -            self.widget("pool-source-name").get_child().set_text(
> -                self._pool.source_name)
> +            self.widget("pool-source-name").set_text(self._pool.source_name)
>  
>          self.widget("pool-format").set_active(-1)
>          if fmt:
> 

ACK

- Cole




More information about the virt-tools-list mailing list