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 authored and Martin Nagy committed 2010-03-07 13:04:50 +01:00
1 parent 96d7de9cae
commit f7b512b826
1 file changed
+1 -1
+1 -1
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