diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-04-06 15:34:22 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-04-06 08:58:05 +0200 |
commit | 6d0be9e3d10e53ef91618d556505e09db64da84b (patch) | |
tree | b4820f5d0186f3e11dca039dae7c3ec14564a8d8 /source4/scripting/bin/samba_spnupdate | |
parent | 49ab2df28a9399fef8d37677404304ac88115b45 (diff) | |
download | samba-6d0be9e3d10e53ef91618d556505e09db64da84b.tar.gz samba-6d0be9e3d10e53ef91618d556505e09db64da84b.tar.bz2 samba-6d0be9e3d10e53ef91618d556505e09db64da84b.zip |
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
Diffstat (limited to 'source4/scripting/bin/samba_spnupdate')
-rwxr-xr-x | source4/scripting/bin/samba_spnupdate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_spnupdate b/source4/scripting/bin/samba_spnupdate index 169c12ab00..1794f2bd26 100755 --- a/source4/scripting/bin/samba_spnupdate +++ b/source4/scripting/bin/samba_spnupdate @@ -196,7 +196,7 @@ def call_rodc_update(d): server = cldap_ret.pdc_dns_name try: binding_options = "seal" - if lp.get("log level") >= 5: + if int(lp.get("log level")) >= 5: binding_options += ",print" drs = drsuapi.drsuapi('ncacn_ip_tcp:%s[%s]' % (server, binding_options), lp, creds) (drs_handle, supported_extensions) = drs_utils.drs_DsBind(drs) |