remove oslo dependency
This commit is contained in:
@@ -4,6 +4,5 @@ stevedore==0.14
|
|||||||
-e git+https://github.com/racker/teeth-rest.git@e876c0fddd5ce2f5223ab16936f711b0d57e19c4#egg=teeth_rest
|
-e git+https://github.com/racker/teeth-rest.git@e876c0fddd5ce2f5223ab16936f711b0d57e19c4#egg=teeth_rest
|
||||||
wsgiref>=0.1.2
|
wsgiref>=0.1.2
|
||||||
pecan>=0.4.5
|
pecan>=0.4.5
|
||||||
oslo.config>=1.2.0
|
|
||||||
WSME>=0.6
|
WSME>=0.6
|
||||||
six>=1.5.2
|
six>=1.5.2
|
||||||
|
@@ -14,14 +14,11 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo.config import cfg
|
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import hooks
|
from pecan import hooks
|
||||||
|
|
||||||
from teeth_agent.api import config
|
from teeth_agent.api import config
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
class AgentHook(hooks.PecanHook):
|
class AgentHook(hooks.PecanHook):
|
||||||
def __init__(self, agent, *args, **kwargs):
|
def __init__(self, agent, *args, **kwargs):
|
||||||
@@ -49,9 +46,7 @@ def setup_app(agent, pecan_config=None, extra_hooks=None):
|
|||||||
app = pecan.make_app(
|
app = pecan.make_app(
|
||||||
pecan_config.app.root,
|
pecan_config.app.root,
|
||||||
static_root=pecan_config.app.static_root,
|
static_root=pecan_config.app.static_root,
|
||||||
# TODO(jimrollenhagen) move this to an oslo config
|
debug=pecan_config.app.debug,
|
||||||
debug=True,
|
|
||||||
#debug=CONF.debug,
|
|
||||||
force_canonical=getattr(pecan_config.app, 'force_canonical', True),
|
force_canonical=getattr(pecan_config.app, 'force_canonical', True),
|
||||||
hooks=app_hooks,
|
hooks=app_hooks,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user