[PATCH] Do not try to set None as hostname (#1002737)

Brian C. Lane bcl at redhat.com
Thu Sep 5 21:48:00 UTC 2013


On Thu, Sep 05, 2013 at 12:25:22PM +0200, Vratislav Podzimek wrote:
> This might happen in the Initial Setup in some special cases.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  pyanaconda/ui/gui/spokes/network.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index f7c1275..97c2174 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -1084,6 +1084,8 @@ class NetworkControlBox(object):
>  
>      @hostname.setter
>      def hostname(self, value):
> +        if not value:
> +            return
>          self.entry_hostname.set_text(value)
>  
>  
> -- 
> 1.7.11.7

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130905/2940188c/attachment.sig>


More information about the anaconda-patches mailing list