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

Florence Blanc-Renaud flo at redhat.com
Thu Aug 4 14:19:30 UTC 2016


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-frenaud-0013-2-Fix-ipa-hbactest-output.patch
Type: text/x-patch
Size: 1771 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160804/0974aab9/attachment.bin>


More information about the Freeipa-devel mailing list