from .idict import CaseInsensitiveDict
from .istringset import CaseInsensitiveStringSet
-__version__ = '0.8.5'
+__version__ = '0.8.6'
LOG = logging.getLogger(__name__)
CFG_BASENAME = 'ldap-migration.ini'
self.count_unchanged = 0
self.count_added = 0
self.count_modified = 0
+ wait = self.config.wait_after_write
for src_dn in self.all_entries:
try:
- self.migrate_entry(
- src_dn, fh=fh, force=False, with_acl=False, migrate_if_group=False)
+ if self.migrate_entry(
+ src_dn, fh=fh, force=False, with_acl=False, migrate_if_group=False):
+ if wait:
+ time.sleep(wait)
except WriteLDAPItemError as e:
msg = "Abort migration: " + str(e)
LOG.error(msg)
print(self.colored(' * {!r}'.format(key), 'GREEN'))
if len(self.src_items_not_found):
print()
- print(self.colored('Not migrated items:', 'CYAN'))
- print(self.colored('###################', 'CYAN'))
+ print(self.colored('Not migrated items:', 'AQUA'))
+ print(self.colored('###################', 'AQUA'))
for dn in self.src_items_not_found:
- print(self.colored(' * {!r}'.format(dn), 'CYAN'))
+ print(self.colored(' * {!r}'.format(dn), 'AQUA'))
finally:
self.disconnect()