mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
dbcheck: Ensure to always increase the error_count
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
658fbefef7
commit
bcd535e95c
@ -1046,6 +1046,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
|
|||||||
if str(attrname).lower() == "instancetype":
|
if str(attrname).lower() == "instancetype":
|
||||||
calculated_instancetype = self.calculate_instancetype(dn)
|
calculated_instancetype = self.calculate_instancetype(dn)
|
||||||
if len(obj["instanceType"]) != 1 or obj["instanceType"][0] != str(calculated_instancetype):
|
if len(obj["instanceType"]) != 1 or obj["instanceType"][0] != str(calculated_instancetype):
|
||||||
|
error_count += 1
|
||||||
self.err_wrong_instancetype(obj, calculated_instancetype)
|
self.err_wrong_instancetype(obj, calculated_instancetype)
|
||||||
|
|
||||||
show_dn = True
|
show_dn = True
|
||||||
|
Loading…
Reference in New Issue
Block a user