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:
1 parent
99da0d88f0
commit
664ae51eb6
1 file changed
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user