from ..argparse_actions import NonNegativeItegerOptionAction
from ..argparse_actions import LimitedFloatOptionAction
-__version__ = '0.2.0'
+__version__ = '0.2.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
if self.failed_entries:
nr = len(self.failed_entries)
+ nr_attr = 0
+ for e_dn in self.failed_entries:
+ for attr in self.failed_entries[e_dn]:
+ for a_val in self.failed_entries[e_dn][attr]:
+ nr_attr += 1
msg = ngettext(
- "Got an inconsistent entry:", "Got {} inconsistent entries:".format(nr), nr)
+ "Got an inconsistent entry.", "Got {} inconsistent entries.".format(nr), nr)
LOG.error(msg)
+ msg = ngettext(
+ "There is one inconsistent attribute.",
+ "There are {} inconsistent attributes.".format(nr_attr), nr_attr)
+ LOG.warn(msg)
print(pp(self.failed_entries.as_dict(pure=True)))
self.exit(5)