]> Frank Brehm's Git Trees - pixelpark/ldap-migration.git/commitdiff
Adding sleep aofter migrating group
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 18 Jan 2021 16:56:46 +0000 (17:56 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 18 Jan 2021 16:56:46 +0000 (17:56 +0100)
lib/ldap_migration/__init__.py

index d8e2dddc527d7dd7c330879d371e34c778e24f09..a59affd28a10d8c7a6924e2a45f5bdba567e4668 100644 (file)
@@ -47,7 +47,7 @@ from fb_tools.collections import FrozenCIStringSet, CIStringSet, CIDict
 
 from .config import LDAPMigrationConfiguration
 
-__version__ = '0.10.5'
+__version__ = '0.10.6'
 
 LOG = logging.getLogger(__name__)
 CFG_BASENAME = 'ldap-migration.ini'
@@ -1901,6 +1901,8 @@ class LDAPMigrationApplication(BaseApplication):
                     }
                     LOG.info("Group entry {src!r} -> {tgt!r} successful migrated.".format(
                         src=src_dn, tgt=tgt_dn))
+                    if wait:
+                        time.sleep(wait)
                 else:
                     LOG.info((
                         "Group entry {src!r} -> {tgt!r} could not migrated "