Raise an error if no modifications were performed in an update.

This will alert the user that nothing was done and is handy when used
with --attr=''. This can be used to delete a non-required attribute but
can be set to any valid attribute, present or not. We should alert the
user if they attempt to delete a non-existant value.
This commit is contained in:
Rob Crittenden 2010-03-19 09:47:35 -04:00 committed by Jason Gerard DeRose
parent 99da0d88f0
commit 664ae51eb6

View File

@ -311,8 +311,6 @@ class LDAPUpdate(LDAPQuery, crud.Update):
ldap.update_entry(dn, entry_attrs)
except errors.NotFound:
self.obj.handle_not_found(*keys)
except errors.EmptyModlist:
pass
try:
(dn, entry_attrs) = ldap.get_entry(dn, attrs_list)