[master] handle case of no ifcfg and no hostname (#1002737)
Brian C. Lane
bcl at redhat.com
Thu Sep 12 17:23:47 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
---
pyanaconda/network.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index d21e9b0..173de7c 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -509,6 +509,9 @@ def kickstartNetworkData(ifcfg=None, hostname=None):
# pylint: disable-msg=E1101
return handler.NetworkData(hostname=hostname, bootProto="")
+ if not ifcfg:
+ return None
+
# no network command for bond slaves
if ifcfg.get("MASTER"):
return None
--
1.8.3.1
More information about the anaconda-patches
mailing list