Remove api-flavor configuration option

This is not used in Senlin at all. Delete it.

Change-Id: I540674b929bcfa21399f1ba417908106f4ebfe26
This commit is contained in:
tengqm 2015-04-26 00:00:01 -04:00
parent bda59efe5b
commit 8aeb5a4f29
2 changed files with 0 additions and 19 deletions

View File

@ -708,9 +708,6 @@
# From senlin.common.config
#
# The flavor to use. (string value)
#flavor = <None>
# The API paste config file to use. (string value)
#api_paste_config = api-paste.ini

View File

@ -26,8 +26,6 @@ from senlin.common import wsgi
paste_deploy_group = cfg.OptGroup('paste_deploy')
paste_deploy_opts = [
cfg.StrOpt('flavor',
help=_("The flavor to use.")),
cfg.StrOpt('api_paste_config', default="api-paste.ini",
help=_("The API paste config file to use."))]
@ -114,16 +112,6 @@ for group, opts in list_opts():
cfg.CONF.register_opts(opts, group=group)
def _get_deployment_flavor():
"""Retrieve paste_deploy.flavor config item.
The result is formatted appropriately to be appended to the
application name.
"""
flavor = cfg.CONF.paste_deploy.flavor
return '' if not flavor else ('-' + flavor)
def _get_deployment_config_file():
"""Retrieve item from deployment_config_file.
@ -151,10 +139,6 @@ def load_paste_app(app_name=None):
if app_name is None:
app_name = cfg.CONF.prog
# append the deployment flavor to the application name,
# in order to identify the appropriate paste pipeline
app_name += _get_deployment_flavor()
conf_file = _get_deployment_config_file()
if conf_file is None:
raise RuntimeError(_("Unable to locate config file"))