[PATCH] network: fix crash on empty ksdevice boot option (#1096846)
Radek Vykydal
rvykydal at redhat.com
Tue May 13 11:26:05 UTC 2014
Resolves: rhbz#1096846
---
pyanaconda/network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 75d2711..bedb23d 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -1103,7 +1103,7 @@ def update_hostname_data(ksdata, hostname):
def get_device_name(network_data):
- ksspec = network_data.device or flags.cmdline.get('ksdevice', "")
+ ksspec = network_data.device or flags.cmdline.get('ksdevice') or ""
dev_name = ks_spec_to_device_name(ksspec)
if not dev_name:
return ""
--
1.8.1.4
More information about the anaconda-patches
mailing list