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

This commit is contained in:
Rob Crittenden 2009-10-02 09:23:40 -04:00 committed by Jason Gerard DeRose
parent e62bbab37a
commit 8de6dc00dc

View File

@ -551,7 +551,7 @@ class LDAPUpdate:
and child in the wrong order. and child in the wrong order.
""" """
dn = updates['dn'] dn = updates['dn']
updates = updates['updates'] updates = updates.get('updates', [])
for u in updates: for u in updates:
# We already do syntax-parsing so this is safe # We already do syntax-parsing so this is safe
(utype, k, values) = u.split(':',2) (utype, k, values) = u.split(':',2)