From 7ec4d58bf71077da5859ab798640479955fbdd48 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 26 Nov 2013 23:31:05 +0100 Subject: [PATCH] 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. --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/cli.py b/ipalib/cli.py index 78f2949d2..4cf007d31 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()