Re: [openstack-dev] How do I mark one option as deprecating another one ?

2014-02-27 Thread Day, Phil
: Denis Makogon [mailto:dmako...@mirantis.com] Sent: 26 February 2014 14:31 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] How do I mark one option as deprecating another one ? Here what oslo.config documentation says. Represents a Deprecated option

Re: [openstack-dev] How do I mark one option as deprecating another one ?

2014-02-27 Thread Davanum Srinivas
2014 14:31 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] How do I mark one option as deprecating another one ? Here what oslo.config documentation says. Represents a Deprecated option. Here's how you can use it oldopts

Re: [openstack-dev] How do I mark one option as deprecating another one ?

2014-02-27 Thread Matt Riedemann
specified. Phil From: Denis Makogon [mailto:dmako...@mirantis.com] Sent: 26 February 2014 14:31 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] How do I mark one option as deprecating another one ? Here what oslo.config documentation says

[openstack-dev] How do I mark one option as deprecating another one ?

2014-02-26 Thread Day, Phil
Hi Folks, I could do with some pointers on config value deprecation. All of the examples in the code and documentation seem to deal with the case of old_opt being replaced by new_opt but still returning the same value Here using deprecated_name and / or deprecated_opts in the definition of

Re: [openstack-dev] How do I mark one option as deprecating another one ?

2014-02-26 Thread Denis Makogon
Here what oslo.config documentation says. Represents a Deprecated option. Here's how you can use it oldopts = [cfg.DeprecatedOpt('oldfoo', group='oldgroup'), cfg.DeprecatedOpt('oldfoo2', group='oldgroup2')] cfg.CONF.register_group(cfg.OptGroup('blaa'))