dbcheck: fix the err_empty_attribute() check
authorStefan Metzmacher <metze@samba.org>
Tue, 19 Mar 2019 12:16:59 +0000 (13:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Mar 2019 18:15:20 +0000 (18:15 +0000)
commit261ef9d5b62f0d49f858717e6d8b4b41f008efb5
tree43baff403de4246bcbc77e07acf923e3cfb18a29
parentdd6f0dad218ec1d5aa38ea8aa6848ec81035cb3f
dbcheck: fix the err_empty_attribute() check

ldb.bytes('') == '' is never True in python3,
we nee ldb.bytes('') == b'' in order to
check that on attribute has an empty value,
that seems to work for python2 and python3.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13843

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Mar 21 18:15:20 UTC 2019 on sn-devel-144
python/samba/dbchecker.py