summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-09-22 17:07:22 -0700
committerKarolin Seeger <kseeger@samba.org>2013-09-27 09:28:58 +0200
commitf0e374f6aa6cbdc0bec3c2af0edc92f3c56c35e6 (patch)
treea63d7c32765594ea33afe9701037ffd8ffdec154 /python
parente7eb397013fcf11dfd5e44a2e247012556733b2d (diff)
downloadsamba-f0e374f6aa6cbdc0bec3c2af0edc92f3c56c35e6.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> (cherry picked from commit bcd535e95c5e8f83f6b30264ab1f0de3c6ac2cda)
Diffstat (limited to 'python')
-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