summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2016-09-13 10:49:47 +0200
committerKarolin Seeger <kseeger@samba.org>2016-10-20 10:45:26 +0200
commitd6027e6afa4c3e16836be3b274dc313c6309200f (patch)
tree9615f92a9ffffeaf2fbfdd55c2c5b5fb3672ea79 /python
parent500876123a3c179cafb417a3bea60495d8e3e7a6 (diff)
downloadsamba-d6027e6afa4c3e16836be3b274dc313c6309200f.tar.gz
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)
Diffstat (limited to 'python')
-rw-r--r--python/samba/join.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/join.py b/python/samba/join.py
index d1a1b085883..a50a409abfc 100644
--- a/python/samba/join.py
+++ b/python/samba/join.py
@@ -402,7 +402,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)
@@ -868,7 +868,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),