diff options
author | Ramamani Yeleswarapu <ramamani.yeleswarapu@intel.com> | 2016-04-15 15:51:42 -0700 |
---|---|---|
committer | Ramamani Yeleswarapu <ramamani.yeleswarapu@intel.com> | 2016-07-15 14:05:09 -0700 |
commit | 6f0aea966b49ec4c1470d18e91fb2bf95cfb5963 (patch) | |
tree | 68ab50cab7dc9423c9b9c94135d45c455401c16d /ironic/api/app.py | |
parent | 47985ea077e59c23adb05056e84fd38b8ffa5534 (diff) | |
download | ironic-6f0aea966b49ec4c1470d18e91fb2bf95cfb5963.tar.gz |
Centralize config options - [DEFAULT]
Nova style refactor of config options in Ironic.
Change-Id: I6baebf1bbc829238441ddd1399f6487fad33a15e
Partial-Bug: #1561100
Diffstat (limited to 'ironic/api/app.py')
-rw-r--r-- | ironic/api/app.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/ironic/api/app.py b/ironic/api/app.py index b390334e1..f81b3e6c6 100644 --- a/ironic/api/app.py +++ b/ironic/api/app.py @@ -24,29 +24,7 @@ from ironic.api import config from ironic.api.controllers.base import Version from ironic.api import hooks from ironic.api import middleware -from ironic.common.i18n import _ - -api_opts = [ - cfg.StrOpt( - 'auth_strategy', - default='keystone', - choices=['noauth', 'keystone'], - help=_('Authentication strategy used by ironic-api. "noauth" should ' - 'not be used in a production environment because all ' - 'authentication will be disabled.')), - cfg.BoolOpt('debug_tracebacks_in_api', - default=False, - help=_('Return server tracebacks in the API response for any ' - 'error responses. WARNING: this is insecure ' - 'and should not be used in a production environment.')), - cfg.BoolOpt('pecan_debug', - default=False, - help=_('Enable pecan debug mode. WARNING: this is insecure ' - 'and should not be used in a production environment.')), -] - -CONF = cfg.CONF -CONF.register_opts(api_opts) +from ironic.conf import CONF def get_pecan_config(): |