summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: