[PATCH rhel7-branch] Don't traceback if connection does not have read-only setting (#1158919)

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue Nov 11 13:33:13 UTC 2014


On Tue, Nov 11, 2014 at 12:28:44PM +0100, Radek Vykydal wrote:
> Resolves: rhbz#1158919

Ack.

> 
> caused by commit 7a9a7de0d6da52d504c70b012cfbe86285d1de83
> ---
>  pyanaconda/ui/gui/spokes/network.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index 24020cc..8e89331 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -430,7 +430,7 @@ class NetworkControlBox(GObject.GObject):
>              log.debug("network: GUI, connection %s found", uuid)
>              if self.dev_cfg(uuid=uuid):
>                  continue
> -            if setting["connection"]["read-only"]:
> +            if setting["connection"].get("read-only", False):
>                  log.debug("network: GUI, not adding read-only connection %s", uuid)
>                  continue
>              dev_cfg = DeviceConfiguration(con_uuid=uuid)
> -- 
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list