[Freeipa-devel] [PATCH] 0013 Fix ipa hbactest output

Martin Basti mbasti at redhat.com
Thu Aug 4 15:14:42 UTC 2016



On 04.08.2016 16:19, Florence Blanc-Renaud wrote:
> On 08/03/2016 05:49 PM, Martin Basti wrote:
>>
>>
>> On 02.08.2016 13:22, Florence Blanc-Renaud wrote:
>>> Hi,
>>>
>>> please find attached a patch related to 'ipa hbactest' producing a
>>> Traceback.
>>>
>>> https://fedorahosted.org/freeipa/ticket/6157
>>>
>>> Flo.
>>>
>>>
>> Hello Flo,
>>
>>
>> 1)
>> can you please move that check, right bellow the for?
>>
>>          for o in self.output:
>> +            if o == 'value':
>> +                continue
>>
>> It is peformance improvements :)  We should not waste time with getting
>> values from dict if we will not use them
>>
>> 2)
>>              elif isinstance(result, (unicode, bool)):
>>                  if o == 'summary':
>>                      textui.print_summary(result)
>>                  else:
>>                      textui.print_indented(result)
>>
>> Here you should remove the 'bool' from isinstance or update
>> print_indented to allow work with boolean (I prefer the first one).
>> Because with any other bool value it will fail again.
>>
>> Thanks,
>> Martin^2
> Hi Martin,
>
> thanks for the review. Please find an updated patch with your comments.
> Flo.
Pushed to master: cad6a551d6558441ead4b2b71d0b906ecefbdb63
ACK




More information about the Freeipa-devel mailing list