mirror of
https://github.com/samba-team/samba.git
synced 2025-07-18 00:59:12 +03:00
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 <tridge@samba.org> Autobuild-Date: Wed Apr 6 08:58:05 CEST 2011 on sn-devel-104
This commit is contained in:
@ -236,7 +236,7 @@ class dc_join(object):
|
||||
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)
|
||||
ctx.drsuapi = drsuapi.drsuapi(binding_string, ctx.lp, ctx.creds)
|
||||
@ -455,7 +455,7 @@ class dc_join(object):
|
||||
repl_creds = ctx.creds
|
||||
|
||||
binding_options = "seal"
|
||||
if ctx.lp.get("debug level") >= 5:
|
||||
if int(ctx.lp.get("log level")) >= 5:
|
||||
binding_options += ",print"
|
||||
repl = drs_utils.drs_Replicate(
|
||||
"ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options),
|
||||
|
Reference in New Issue
Block a user