[PATCH master] Don't traceback on ksdevice=bootif without BOOTIF supplied (#968270)
Radek Vykydal
rvykydal at redhat.com
Tue Jun 25 09:49:02 UTC 2013
IMO the patch would be safe to go to F19 but otoh the use case is a
misconfiguration (using ksdevice=bootif without BOOTIF supplied).
---
pyanaconda/network.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 2e93f1c..20cdb66 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -616,7 +616,7 @@ def get_ksdevice_name(ksspec=""):
ksspec = flags.cmdline.get('ksdevice', "")
ksdevice = ksspec
- bootif_mac = None
+ bootif_mac = ''
if ksdevice == 'bootif' and "BOOTIF" in flags.cmdline:
bootif_mac = flags.cmdline["BOOTIF"][3:].replace("-", ":").upper()
for dev in sorted(nm.nm_devices()):
--
1.7.11.7
More information about the anaconda-patches
mailing list