Robustness fix for updater, in case updates['updates'] is not set yet.

This commit is contained in:
Rob Crittenden authored and Jason Gerard DeRose committed 2009-10-05 13:26:41 -06:00
1 parent e62bbab37a
commit 8de6dc00dc
1 file changed
+1 -1
+1 -1
View File
@@ -551,7 +551,7 @@ class LDAPUpdate:
and child in the wrong order.
"""
dn = updates['dn']
updates = updates['updates']
updates = updates.get('updates', [])
for u in updates:
# We already do syntax-parsing so this is safe
(utype, k, values) = u.split(':',2)