summaryrefslogtreecommitdiffstats
path: root/kolabd/__init__.py
diff options
context:
space:
mode:
authorTimotheus Pokorra (TBits.net) <tp@tbits.net>2014-08-19 15:11:29 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 22:53:00 +0200
commit1da7b81cebf9bb2fd9485e5af3f59ede9a31b4c0 (patch)
tree93a5525fb7c4b4f300580bcf96b85602df64c50c /kolabd/__init__.py
parentee82a914da00c1f0133240abc4767ac01f4c27ea (diff)
downloadpykolab-1da7b81cebf9bb2fd9485e5af3f59ede9a31b4c0.tar.gz
Bug #2491: sleep time until new domains are created should be optionally set in configuration file
Diffstat (limited to 'kolabd/__init__.py')
-rw-r--r--kolabd/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index 54905f6..92a929c 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -269,7 +269,11 @@ class KolabDaemon(object):
added_domains.append(domain)
if len(removed_domains) == 0 and len(added_domains) == 0:
- time.sleep(600)
+ try:
+ sleep_between_domain_operations_in_seconds = (float)(conf.get('kolab', 'domain_sync_interval'))
+ time.sleep(sleep_between_domain_operations_in_seconds)
+ except ValueError:
+ time.sleep(600)
log.debug(
_("added domains: %r, removed domains: %r") % (