summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-11-26 23:31:05 +0100
committerAlexander Bokovoy <abokovoy@redhat.com>2014-01-17 09:58:18 +0200
commit90b31e99fed17a8a505f9ec67677e6d1ab7078da (patch)
tree581bdb015dcf42958cf2eb2410fdfca67f69ceb7
parent50a6430dbd529715bd8b8c07b4397156debb612c (diff)
downloadfreeipa.git-90b31e99fed17a8a505f9ec67677e6d1ab7078da.tar.gz
freeipa.git-90b31e99fed17a8a505f9ec67677e6d1ab7078da.tar.xz
freeipa.git-90b31e99fed17a8a505f9ec67677e6d1ab7078da.zip
cli.print_attribute: Convert values to strings
When output_for_cli was called directly, rather than for values received through XML or JSON API, joining multiple values failed on non-strings such as DN objects. Convert output to strings before printing it out.
-rw-r--r--ipalib/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 5f02e929..41e1b475 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -293,7 +293,7 @@ class textui(backend.Backend):
return
else:
if len(value) > 0:
- text = ', '.join(value)
+ text = ', '.join(str(v) for v in value)
else:
return
line_len = self.get_tty_width()