summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-10-12 23:11:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-10-13 00:23:39 +0200
commitfba4b7a5b9cba2c5319793fcf8bda9767836419e (patch)
tree320a6363f0a0c585e6d9bb07d50cd1b3d611b914 /source4/scripting/python
parentba5b8a1056a1414d43120aec715c8e9a896c0290 (diff)
downloadsamba-fba4b7a5b9cba2c5319793fcf8bda9767836419e.tar.gz
samba-fba4b7a5b9cba2c5319793fcf8bda9767836419e.tar.bz2
samba-fba4b7a5b9cba2c5319793fcf8bda9767836419e.zip
samba-tool/testparm: Fix traceback when checking client name/ip against hosts allowed.
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-xsource4/scripting/python/samba/netcmd/testparm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/testparm.py b/source4/scripting/python/samba/netcmd/testparm.py
index 9ffc2f491d..08d21721c7 100755
--- a/source4/scripting/python/samba/netcmd/testparm.py
+++ b/source4/scripting/python/samba/netcmd/testparm.py
@@ -102,7 +102,7 @@ class cmd_testparm(Command):
valid = self.do_global_checks(lp, logger)
valid = valid and self.do_share_checks(lp, logger)
if client_name is not None and client_ip is not None:
- self.check_client_access(lp, client_name, client_ip)
+ self.check_client_access(lp, logger, client_name, client_ip)
else:
if section_name is not None or parameter_name is not None:
if parameter_name is None:
@@ -191,7 +191,7 @@ class cmd_testparm(Command):
valid = False
return valid
- def check_client_access(self, lp, cname, caddr):
+ def check_client_access(self, lp, logger, cname, caddr):
# this is totally ugly, a real `quick' hack
for s in lp.services():
if (self.allow_access(lp.get("hosts deny"), lp.get("hosts allow"), cname,