mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
python/join: do not attempt to parse log level, use parsed value
The log level parameter can contain debug class specific entries. Do not attempt to parse this as int, but use the values that the debugging system already parsed BUG: https://bugzilla.samba.org/show_bug.cgi?id=9945 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 92178f02bd09277f783eb68b476cfd1452c7f9ef)
This commit is contained in:
parent
430e9d2b2a
commit
4c54612734
@ -373,7 +373,7 @@ class dc_join(object):
|
||||
def drsuapi_connect(ctx):
|
||||
'''make a DRSUAPI connection to the naming master'''
|
||||
binding_options = "seal"
|
||||
if int(ctx.lp.get("log level")) >= 4:
|
||||
if ctx.lp.log_level() >= 4:
|
||||
binding_options += ",print"
|
||||
binding_string = "ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options)
|
||||
ctx.drsuapi = drsuapi.drsuapi(binding_string, ctx.lp, ctx.creds)
|
||||
@ -810,7 +810,7 @@ class dc_join(object):
|
||||
repl_creds = ctx.creds
|
||||
|
||||
binding_options = "seal"
|
||||
if int(ctx.lp.get("log level")) >= 5:
|
||||
if ctx.lp.log_level() >= 5:
|
||||
binding_options += ",print"
|
||||
repl = drs_utils.drs_Replicate(
|
||||
"ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options),
|
||||
|
Loading…
x
Reference in New Issue
Block a user