summaryrefslogtreecommitdiff
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
parent658fbefef7f95df6410f98407a6a77dee32c268f (diff)
downloadsamba-bcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda.tar.gz
samba-bcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda.tar.bz2
samba-bcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda.zip
dbcheck: Ensure to always increase the error_count
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-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 ee8b5ae5fb..54c52cbdc4 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