]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Changing output
authorFrank Brehm <frank@brehm-online.com>
Wed, 2 Nov 2022 11:42:13 +0000 (12:42 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 2 Nov 2022 11:42:13 +0000 (12:42 +0100)
lib/pp_admintools/app/mirror_ldap.py

index 1d341b2c36ac9e274f4b44c483073fcca6b7a27a..91979654244e2275cc5d2ffabf8ec8fb7db3ef49 100644 (file)
@@ -268,6 +268,16 @@ class MirrorLdapApplication(BaseLdapApplication):
             self.clean_tgt_struct_entries()
             self.mirror_struct_entries()
             self.mirror_non_struct_entries()
+            msg = ngettext(
+                "{:>5} entry deleted.", "{:>5} entries deleted.", self.total_deleted).format(
+                self.total_deleted)
+            msg += ' ' + ngettext(
+                "{:>5} entry updated.", "{:>5} entries updated.", self.total_updated).format(
+                self.total_updated)
+            msg += ' ' + ngettext(
+                "{:>5} entry created.", "{:>5} entries created.", self.total_created).format(
+                self.total_created)
+            LOG.info(msg)
 
             if not self.quiet:
                 self.empty_line()