[PATCH f18 would be blocker] Network spoke: don't try to call replace on None (traceback) (#869106)
Radek Vykydal
rvykydal at redhat.com
Thu Nov 1 10:50:54 UTC 2012
This is a fix for stupid rush mistake that went in 18.22.
With wireless card present going to network spoke without selecting any ap
will cause traceback.
---
pyanaconda/ui/gui/spokes/network.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index aec0b3e..a479736 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -1062,8 +1062,8 @@ def getKSNetworkData(device):
if ap:
ifcfg_suffix = ap.get_ssid()
- ifcfg_suffix = ifcfg_suffix.replace(' ', '_')
if ifcfg_suffix:
+ ifcfg_suffix = ifcfg_suffix.replace(' ', '_')
device_cfg = NetworkDevice(netscriptsDir, ifcfg_suffix)
device_cfg.loadIfcfgFile()
retval = kickstartNetworkData(ifcfg=device_cfg)
--
1.7.4
More information about the anaconda-patches
mailing list