[openstack-dev] How change a section name in oslo.config but keep compatibility with the old format

Maxime Cottret maxime.cottret at objectif-libre.com
Thu Jan 12 10:43:29 UTC 2017


 

Thanks jordan for the quick answer, it looks interesting. 

I forgot
a detail: the section name is defined when registering options with the
cfg.CONF.register_opts method. 

--
Maxime Cottret - Consultant
Cloud/DataOps @ OBJECTIF-LIBRE

Mail :
maxime.cottret at objectif-libre.com
Tel : 05 82 95 65 36 (standard)
Web :
www.objectif-libre.com Twitter: @objectiflibre

Le 2017-01-12 11:35,
Jordan Pittier a écrit : 

> Hi,
> 
> Look at this file
>
https://github.com/openstack/tempest/blob/master/tempest/config.py [3]
and
> search for "deprecated_opts" Not sure you can deprecate a whole
>
section, but you can set the old location (old section/old config
>
name) for each new config option.
> 
> On Thu, Jan 12, 2017 at 11:01 AM,
Maxime Cottret
> <maxime.cottret at objectif-libre.com> wrote:
> 
>> Hi
every one, I'm a new developer on Cloudkitty project and I was wondering
how I can depreciate a section name in oslo.config. I'd like to rename a
section for consistency and depreciate the old name before removing its
use in the next cycle. I've looked into oslo.config documentation but
couldn't manage a way to do it. Thanks in advance for your help. Regards
-- Maxime Cottret - Consultant Cloud/DataOps @ OBJECTIF-LIBRE Mail :
maxime.cottret at objectif-libre.com Tel : 05 82 95 65 36 (standard) Web :
www.objectif-libre.com [1] Twitter: @objectiflibre
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe:
OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev [2]



Links:
------
[1] http://www.objectif-libre.com
[2]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[3]
https://github.com/openstack/tempest/blob/master/tempest/config.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170112/97d3fd7b/attachment.html>


More information about the OpenStack-dev mailing list