summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--kickstart.py9
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 536032cc4..898cdb90e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-21 Chris Lumens <clumens@redhat.com>
+
+ * kickstart.py (AnacondaKSHandlers.doNetwork): More helpful message.
+
2005-11-21 Jeremy Katz <katzj@redhat.com>
* anaconda.spec: Bump version.
diff --git a/kickstart.py b/kickstart.py
index e0c7aaafa..d2cafaf72 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -262,9 +262,12 @@ class AnacondaKSHandlers(KickstartHandlers):
KickstartHandlers.doNetwork(self, args)
nd = self.ksdata.network[-1]
- id.instClass.setNetwork(id, nd.bootProto, nd.ip, nd.netmask,
- nd.ethtool, nd.device, nd.onboot,
- nd.dhcpclass, nd.essid, nd.wepkey)
+ try:
+ id.instClass.setNetwork(id, nd.bootProto, nd.ip, nd.netmask,
+ nd.ethtool, nd.device, nd.onboot,
+ nd.dhcpclass, nd.essid, nd.wepkey)
+ except KeyError:
+ raise KickstartValueError, formatErrorMsg(self.lineno, msg="The provided network interface %s does not exist" % nd.device)
if nd.hostname != "":
id.instClass.setHostname(id, nd.hostname, override=1)