diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-01-21 09:30:23 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-01-24 22:44:15 -0500 |
commit | 0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091 (patch) | |
tree | 789278e67d4fd72bd0ad8c2ef91d1417ebe36793 /ipalib/cli.py | |
parent | 3e3cc55d24e2bfc4fec80d5e10ce4f3646d7c08c (diff) | |
download | freeipa-0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091.tar.gz freeipa-0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091.tar.xz freeipa-0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091.zip |
Fix crash when displaying values composed of white-space chars only in CLI.
Ticket #825
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 2cd3a97c3..2d219b71b 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -302,6 +302,8 @@ class textui(backend.Backend): text = textwrap.wrap( text, line_len, break_long_words=False ) + if len(text) == 0: + text = [u''] else: text = [text] self.print_indented(format % (attr, text[0]), indent) |