[Freeipa-devel] [PATCH] 573 use context to determine RequirementsErrors attributes

Simo Sorce ssorce at redhat.com
Thu Oct 28 20:07:16 UTC 2010


On Mon, 11 Oct 2010 22:31:49 -0400
Rob Crittenden <rcritten at redhat.com> wrote:

> 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

ACK, tested and pushed to master

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list