deprecate "default_flavor" config option

The ``default_flavor`` config option is now deprecated and may be
removed as early as the 15.0.0 release. It is an option which was only
relevant for the deprecated EC2 API and is not used in the Nova API.

Change-Id: I31683bd50745ae3c0e1573f43f9ee4165377b0dd
This commit is contained in:
Markus Zoeller 2016-05-09 16:02:05 +02:00 committed by John Garbutt
parent 88703e1c87
commit b7660e0d7b
2 changed files with 9 additions and 2 deletions

View File

@ -19,8 +19,10 @@ from oslo_config import cfg
flavor_opts = [
cfg.StrOpt('default_flavor',
default='m1.small',
help='Default flavor to use for the EC2 API only. The Nova API '
'does not support a default flavor.'),
deprecated_for_removal=True,
deprecated_reason='The EC2 API is deprecated',
help='DEPRECATED: Default flavor to use for the EC2 API only. '
'The Nova API does not support a default flavor.'),
]

View File

@ -0,0 +1,5 @@
---
deprecations:
- The ``default_flavor`` config option is now deprecated and may be removed
as early as the 15.0.0 release. It is an option which was only relevant
for the deprecated EC2 API and is not used in the Nova API.