diff --git a/requirements.txt b/requirements.txt index 19e997103..54d08099f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,5 @@ stevedore==0.14 -e git+https://github.com/racker/teeth-rest.git@e876c0fddd5ce2f5223ab16936f711b0d57e19c4#egg=teeth_rest wsgiref>=0.1.2 pecan>=0.4.5 -oslo.config>=1.2.0 WSME>=0.6 six>=1.5.2 diff --git a/teeth_agent/api/app.py b/teeth_agent/api/app.py index 1486578dc..b9560d4f4 100644 --- a/teeth_agent/api/app.py +++ b/teeth_agent/api/app.py @@ -14,14 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. """ -from oslo.config import cfg import pecan from pecan import hooks from teeth_agent.api import config -CONF = cfg.CONF - class AgentHook(hooks.PecanHook): def __init__(self, agent, *args, **kwargs): @@ -49,9 +46,7 @@ def setup_app(agent, pecan_config=None, extra_hooks=None): app = pecan.make_app( pecan_config.app.root, static_root=pecan_config.app.static_root, - # TODO(jimrollenhagen) move this to an oslo config - debug=True, - #debug=CONF.debug, + debug=pecan_config.app.debug, force_canonical=getattr(pecan_config.app, 'force_canonical', True), hooks=app_hooks, )