From 6d0be9e3d10e53ef91618d556505e09db64da84b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Apr 2011 15:34:22 +1000 Subject: s4-test: fixed a problem with very verbose NDR debug lp.get("log level") returns a string, not an integer. It needs to be cast to an integer for comparison with a number Autobuild-User: Andrew Tridgell Autobuild-Date: Wed Apr 6 08:58:05 CEST 2011 on sn-devel-104 --- source4/scripting/python/samba/netcmd/drs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/python/samba/netcmd') diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py index 69e164ef3e..56c0e39a59 100644 --- a/source4/scripting/python/samba/netcmd/drs.py +++ b/source4/scripting/python/samba/netcmd/drs.py @@ -38,7 +38,7 @@ import common def drsuapi_connect(ctx): '''make a DRSUAPI connection to the server''' binding_options = "seal" - if ctx.lp.get("log level") >= 5: + if int(ctx.lp.get("log level")) >= 5: binding_options += ",print" binding_string = "ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options) try: -- cgit