dbcheck: Ensure to always increase the error_count
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Sep 2013 00:07:22 +0000 (17:07 -0700)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:29 +0000 (07:44 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
python/samba/dbchecker.py

index ee8b5ae5fbaec61befcf60211409deb451d6570b..54c52cbdc4257146570b1ee54e434ece24b830e3 100644 (file)
@@ -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