summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/ldapupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/install/ldapupdate.py')
-rw-r--r--ipaserver/install/ldapupdate.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py
index e7411e3fb..958904950 100644
--- a/ipaserver/install/ldapupdate.py
+++ b/ipaserver/install/ldapupdate.py
@@ -213,7 +213,18 @@ class LDAPUpdate:
return all_updates
e = all_updates[dn]
- e['updates'] = e['updates'] + update['updates']
+ if 'default' in update:
+ if 'default' in e:
+ e['default'] = e['default'] + update['default']
+ else:
+ e['default'] = update['default']
+ elif 'updates' in update:
+ if 'updates' in e:
+ e['updates'] = e['updates'] + update['updates']
+ else:
+ e['updates'] = update['updates']
+ else:
+ logging.debug("Unknown key in updates %s" % update.keys())
all_updates[dn] = e
@@ -289,7 +300,8 @@ class LDAPUpdate:
"""Create a task to update an index for an attribute"""
# Sleep a bit to ensure previous operations are complete
- time.sleep(5)
+ if self.live_run:
+ time.sleep(5)
r = random.SystemRandom()