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

Martin Kolman mkolman at redhat.com
Tue Nov 11 14:52:42 UTC 2014


On Tue, 2014-11-11 at 12:27 +0100, Radek Vykydal wrote:
> Resolves: rhbz#1158919
> 
> 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)
Looks good, ACK!



More information about the anaconda-patches mailing list