Martin Nagy wrote:
On 03/05/2010 07:47 PM, Rob Crittenden wrote:
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.
How will the user see this error? I'm not sure this should be presented
as an error, but more like a notification maybe. Also, I'm not 100% sure
how we handle exceptions like this on the server side, but I'm guessing
that this will not show up in the server logs as an exception?
A user would just see "no modifications to be performed".
The server doesn't log the failure, just the call:
ipa: INFO: Created connection context.ldap2
ipa: DEBUG: raw: user_mod(u'tuser1', street=None, all=False, raw=False)
ipa: INFO: user_mod(u'tuser1', street=None, all=False, raw=False)
ipa: INFO: Destroyed connection context.ldap2
Freeipa-devel mailing list