mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add labels for passwords, fix output of exceptions, fix passwd output.
Passwords didn't have internationalizable labels. Exceptions that occured during required input weren't printed as unicode so weren't being translated properly. Don't use output_for_cli() directly in the passwd plugin, use output.Output. ticket 352
This commit is contained in:
@@ -903,7 +903,7 @@ class cli(backend.Executioner):
|
||||
error = None
|
||||
while True:
|
||||
if error is not None:
|
||||
print '>>> %s: %s' % (param.label, error)
|
||||
print '>>> %s: %s' % (unicode(param.label), unicode(error))
|
||||
raw = self.Backend.textui.prompt(param.label, default)
|
||||
try:
|
||||
value = param(raw, **kw)
|
||||
|
||||
Reference in New Issue
Block a user