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
_______________________________________________ Freeipa-devel mailing list Freeipafirstname.lastname@example.org https://www.redhat.com/mailman/listinfo/freeipa-devel