summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-01-23 04:01:21 +0000
committerJeremy Katz <katzj@redhat.com>2004-01-23 04:01:21 +0000
commit34763ea403a95b0580fd9bd9e6a36f3cd5053d7b (patch)
tree5ce0456ca7d73cee615381246fe79f92bf812472
parent06a5cbcb683eedee21c5a01e99c61b9c53e05a03 (diff)
downloadanaconda-34763ea403a95b0580fd9bd9e6a36f3cd5053d7b.tar.gz
anaconda-34763ea403a95b0580fd9bd9e6a36f3cd5053d7b.tar.xz
anaconda-34763ea403a95b0580fd9bd9e6a36f3cd5053d7b.zip
fix for pump dhcpclass stuff
-rwxr-xr-xcommand-stubs/pump-stub2
-rw-r--r--isys/isys.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/command-stubs/pump-stub b/command-stubs/pump-stub
index 936315358..63f093be6 100755
--- a/command-stubs/pump-stub
+++ b/command-stubs/pump-stub
@@ -27,7 +27,7 @@ while (argv):
else:
usage()
-ns = isys.pumpNetDevice(iface)
+ns = isys.pumpNetDevice(iface, None)
if ns:
f = open("/etc/resolv.conf", "w")
f.write("nameserver %s\n" % ns)
diff --git a/isys/isys.py b/isys/isys.py
index 4a1cd2ec8..d7f3aacea 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -464,10 +464,10 @@ def resetResolv():
def setResolvRetry(count):
return _isys.setresretry(count)
-def pumpNetDevice(device):
+def pumpNetDevice(device, klass = None):
# returns None on failure, "" if no nameserver is found, nameserver IP
# otherwise
- return _isys.pumpnetdevice(device)
+ return _isys.pumpnetdevice(device, klass)
def readXFSLabel_int(device):
try: