summaryrefslogtreecommitdiff
path: root/python/samba/dbchecker.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-09-22 17:07:22 -0700
committerMichael Adam <obnox@samba.org>2013-09-24 07:44:29 +0200
commitbcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda (patch)
tree58e263605dc2091fa26af826cb07601c3989b1aa /python/samba/dbchecker.py
parent658fbefef7f95df6410f98407a6a77dee32c268f (diff)
downloadsamba-bcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda.tar.gz
dbcheck: Ensure to always increase the error_count
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'python/samba/dbchecker.py')
-rw-r--r--python/samba/dbchecker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py
index ee8b5ae5fba..54c52cbdc42 100644
--- a/python/samba/dbchecker.py
+++ b/python/samba/dbchecker.py
@@ -1046,6 +1046,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
if str(attrname).lower() == "instancetype":
calculated_instancetype = self.calculate_instancetype(dn)
if len(obj["instanceType"]) != 1 or obj["instanceType"][0] != str(calculated_instancetype):
+ error_count += 1
self.err_wrong_instancetype(obj, calculated_instancetype)
show_dn = True