remove oslo dependency

This commit is contained in:
Jim Rollenhagen 2014-03-13 13:35:31 -07:00
parent 73bef57ed3
commit 2fc74707cb
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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,
)