summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-12-18 18:55:15 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-12-18 18:55:15 +0000
commitb87c31ebaad5bc4a621b9759e6b89c88764b7f5c (patch)
tree61961a3344cf1a8e09e263c1b7610fc41174e98c /isys
parent690fa3b39873c1202cc1a2ea8d984ec6f0c5d7e1 (diff)
downloadanaconda-b87c31ebaad5bc4a621b9759e6b89c88764b7f5c.tar.gz
anaconda-b87c31ebaad5bc4a621b9759e6b89c88764b7f5c.tar.xz
anaconda-b87c31ebaad5bc4a621b9759e6b89c88764b7f5c.zip
* isys/isys.c (doDhcpNetDevice): Honor dhcpclass param (#220057).
* loader2/net.c: Likewise.
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/isys/isys.c b/isys/isys.c
index d95e97d2a..0d5e556d4 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -627,10 +627,13 @@ static PyObject * doDhcpNetDevice(PyObject * s, PyObject * args) {
if (!PyArg_ParseTuple(args, "s|s", &device, &dhcpclass))
return NULL;
+ if (dhcpclass == NULL)
+ dhcpclass = "anaconda";
+
memset(&cfg, '\0', sizeof(cfg));
strncpy(cfg.device, device, sizeof(cfg.device) - 1);
- r = pumpDhcpClassRun(&cfg, 0L, "anaconda", pref, 0, timeout, NULL, 0L);
+ r = pumpDhcpClassRun(&cfg, 0L, dhcpclass, pref, 0, timeout, NULL, 0L);
if (r) {
Py_INCREF(Py_None);
return Py_None;