diff options
author | Christian Ambach <ambi@samba.org> | 2016-09-13 10:49:47 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-10-20 10:45:26 +0200 |
commit | 500876123a3c179cafb417a3bea60495d8e3e7a6 (patch) | |
tree | 873b473fcef06cf511529dd44d2bf4f2c704391d /python | |
parent | d10c37702af5417ae0292265c92c6cccf2be5e43 (diff) | |
download | samba-500876123a3c179cafb417a3bea60495d8e3e7a6.tar.gz |
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>
(cherry picked from commit dd25aa129b6d799853312134628402f77b492eab)
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/drs_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/drs_utils.py b/python/samba/drs_utils.py index 6c8afae7e90..07fc05af246 100644 --- a/python/samba/drs_utils.py +++ b/python/samba/drs_utils.py @@ -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: |