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

2017-01-12 Thread Maxime Cottret
 

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.cott...@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
>  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.cott...@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-requ...@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
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2017-01-12 Thread Jordan Pittier
Hi,

Look at this file
https://github.com/openstack/tempest/blob/master/tempest/config.py 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
 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.cott...@objectif-libre.com
> Tel : 05 82 95 65 36 (standard)
> Web : www.objectif-libre.com Twitter: @objectiflibre
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

-- 
 


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2017-01-12 Thread Maxime Cottret
 

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.cott...@objectif-libre.com
Tel : 05 82
95 65 36 (standard)
Web : www.objectif-libre.com Twitter:
@objectiflibre
 __
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev