#5921 Local variable s_indent might be referenced before deinfed in textui.print_attribute
Opened by mbasti. Modified

Attribute s_indent is not defined in cases:

  • if terminal length is unknown
  • if text to be printed is unspecified (???)

That code is hard to understand and have poor quality, it is storm of if and else statements and IMO it is not possible to get empty text in that place.


a workaround should be merged in 4.4 timeframe. Proper fix later.

safety fix was pushed 4.4:

  • 493ae1e5028c6ce8a0888146ee3de6c798caa55f Fix: Local variable s_indent might be referenced before defined

But this method needs more love in 4.5

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.5 backlog

Metadata Update from @mbasti:
- Assignee reset

Metadata