When raising an error about a required attribute, use cli_name not name.

name is an LDAP attribute and may not be easily identifiable (e.g. sn).
This commit is contained in:
Rob Crittenden 2010-03-05 14:08:28 -05:00 committed by Martin Nagy
parent 96d7de9cae
commit f7b512b826

View File

@ -703,7 +703,7 @@ class Param(ReadOnly):
"""
if value is None:
if self.required:
raise RequirementError(name=self.name)
raise RequirementError(name=self.cli_name)
return
if self.query:
return