diff options
author | Pavel Zuna <pzuna@redhat.com> | 2009-10-22 16:47:22 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-10-23 09:37:23 -0400 |
commit | 04c5b5ae42c25256f54f981dd2bedbb5a1855be5 (patch) | |
tree | e6ff52cc60b90dfc665a1d38670642648d2902d2 /ipalib/cli.py | |
parent | 81f8c5f0db8ccafb8c51978d92411f7869b3f536 (diff) | |
download | freeipa-04c5b5ae42c25256f54f981dd2bedbb5a1855be5.tar.gz freeipa-04c5b5ae42c25256f54f981dd2bedbb5a1855be5.tar.xz freeipa-04c5b5ae42c25256f54f981dd2bedbb5a1855be5.zip |
Fix bug in print_attribute.
When the attribute had no values an exception was generated while
trying to word-wrap it.
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 85282a03..7913512f 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -263,7 +263,7 @@ class textui(backend.Backend): else: text = ', '.join(value) line_len = self.get_tty_width() - if line_len: + if line_len and text: s_indent = '%s%s' % ( CLI_TAB * indent, ' ' * (len(attr) + 2) ) |