mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix bug in print_attribute.
When the attribute had no values an exception was generated while trying to word-wrap it.
This commit is contained in:
parent
81f8c5f0db
commit
04c5b5ae42
@ -263,7 +263,7 @@ class textui(backend.Backend):
|
|||||||
else:
|
else:
|
||||||
text = ', '.join(value)
|
text = ', '.join(value)
|
||||||
line_len = self.get_tty_width()
|
line_len = self.get_tty_width()
|
||||||
if line_len:
|
if line_len and text:
|
||||||
s_indent = '%s%s' % (
|
s_indent = '%s%s' % (
|
||||||
CLI_TAB * indent, ' ' * (len(attr) + 2)
|
CLI_TAB * indent, ' ' * (len(attr) + 2)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user