[PATCH rhel7-branch] Don't traceback if connection does not have read-only setting (#1158919)
Radek Vykydal
rvykydal at redhat.com
Tue Nov 11 11:28:44 UTC 2014
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)
--
1.9.3
More information about the anaconda-patches
mailing list