Use context to decide which name to return on RequirementsErrors

When a Requirement fails we throw an exception including the name of the field that is missing. To make the command-line friendlier we have a cli_name defined which may or may not match the LDAP attribute. This can be confusing if you are using ipalib directly because the attribute name missing may not match what is actually required (desc vs description is a good example).

If you use the context 'cli' then it will throw exceptions using cli_name. If you use any other context it will use the name of the attribute.

ticket 187

rob

Attachment: freeipa-573-parameter.patch
Description: application/mbox

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to