[libvirt] [PATCH 0/3] use virStringParseYesNo helper

maozy maozhongyi at cmss.chinamobile.com
Wed Oct 16 09:32:31 UTC 2019



On 10/16/19 3:51 PM, Andrea Bolognani wrote:
> On Wed, 2019-10-16 at 10:39 +0800, Mao Zhongyi wrote:
>> A function virStringParseYesNo was added to convert
>> string 'yes' to true and 'no' to false, so use this
>> helper to replace 'STREQ(.*, \"yes\")' and
>> 'STREQ(.*, \"no\")' as it allows us to drop several
>> repetitive if-then-else string->bool conversion blocks.
>>
>> Cc: abologna at redhat.com
>> Cc: berrange at redhat.com
>> Cc: crobinso at redhat.com
>> Cc: gene at czarc.net
>> Cc: g.sho1500 at gmail.com
>> Cc: jdenemar at redhat.com
>> Cc: laine at laine.org
>> Cc: mkletzan at redhat.com
>> Cc: phrdina at redhat.com
> 
> Please do *not* CC random libvirt developer when sending patches to
> the list: we are all subscribed, and someone will get to your patches
> eventually; if you haven't gotten any replies after two weeks or so,
> then it's perfectly fine to ping but once again do that on the list,
> not targeting specific individuals.
> 

Ok, I got it, thanks for the clarification.

Thanks,
Mao





More information about the libvir-list mailing list