mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
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:
parent
99da0d88f0
commit
664ae51eb6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user