summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-12-02 16:31:42 -0500
committerRob Crittenden <rcritten@redhat.com>2010-12-02 16:31:42 -0500
commita41e69fba360d7cfc83e8592528562e06573533b (patch)
treea6083668289531b51ceb36e101b7b08b2389e531 /ipalib/cli.py
parent6c393e53b01222ba7629ce86384d0adb34f7f275 (diff)
downloadfreeipa-a41e69fba360d7cfc83e8592528562e06573533b.tar.gz
freeipa-a41e69fba360d7cfc83e8592528562e06573533b.tar.xz
freeipa-a41e69fba360d7cfc83e8592528562e06573533b.zip
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
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 1be392567..375607ff0 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -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)