[Avocado-devel] RFC: Configuration by convention

Plamen Dimitrov pdimitrov at pevogam.com
Wed Dec 4 17:21:38 UTC 2019


Hi Beraldo,

On 12/4/19 7:18 PM, Beraldo Leal wrote:
> On Wed, Dec 04, 2019 at 12:06:17PM -0500, Cleber Rosa wrote:
>> On Wed, Dec 04, 2019 at 03:52:40PM +0200, Plamen Dimitrov wrote:
>>> On 12/3/19 9:15 PM, Cleber Rosa wrote:
>> That may work, but may also lead to configuration entries that are rather
>> long because of the lack of specificity of the section name.  So, instead
>> of:
>>
>>   [sysinfo.collect]
>>   enabled = True
>>
>> We would have
>>
>>   [core]
>>   sysinfo_collect_enabled = True
>>
>> I'm not arguing against it, but just making it clear.  In fact, it may
>> even make things simpler wrt to the upcoming discussion on the Job
>> API.
> Or:
> 
> -----
> [core]
> ....
> [core.sysinfo]
> collect_enabled = True
> -----
> 
> Not sure yet, just giving more options.
> 
> Thinking on the future API, everything related to core could be in the
> same "namespace" but in a different section:
> 
> settings = {'core': {'foo': 'bar',
>                      'sysinfo': {'collect_enabled': True}
> 		    }
>            }

You just stole my words :o)

I was a few seconds late though.

+1
Plamen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20191204/d8c560e7/attachment.sig>


More information about the Avocado-devel mailing list