diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-18 16:45:21 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-19 10:08:52 -0500 |
commit | 5a6d2dd0d999d73b95e1738195cca32dab4fecc3 (patch) | |
tree | 149f15612070290a51fef3f25e2a3b356b246cb6 /ipalib/cli.py | |
parent | ccf703a2b6b351483d2ce13045ca12f18b63d2cf (diff) | |
download | freeipa-5a6d2dd0d999d73b95e1738195cca32dab4fecc3.tar.gz freeipa-5a6d2dd0d999d73b95e1738195cca32dab4fecc3.tar.xz freeipa-5a6d2dd0d999d73b95e1738195cca32dab4fecc3.zip |
Print out multi-valued values one per-line instead of comman-delimited
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index d0119614..c1d5ea0e 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -251,10 +251,10 @@ class textui(backend.Backend): for key in sorted(entry): value = entry[key] if type(value) in (list, tuple): - value = ', '.join(repr(v) for v in value) + for v in value: + self.print_indented('%s: %s' % (key, repr(v)), indent) else: - value = repr(value) - self.print_indented('%s: %s' % (key, value), indent) + self.print_indented('%s: %s' % (key, repr(value)), indent) def print_dashed(self, string, above=True, below=True, indent=0, dash='-'): """ |