mirror of
https://github.com/samba-team/samba.git
synced 2025-07-13 08:59:08 +03:00
python/drs_utils: 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>
This commit is contained in:
@ -44,7 +44,7 @@ def drsuapi_connect(server, lp, creds):
|
||||
"""
|
||||
|
||||
binding_options = "seal"
|
||||
if int(lp.get("log level")) >= 5:
|
||||
if lp.log_level() >= 5:
|
||||
binding_options += ",print"
|
||||
binding_string = "ncacn_ip_tcp:%s[%s]" % (server, binding_options)
|
||||
try:
|
||||
|
Reference in New Issue
Block a user