keystone/httpd/keystone.py
Adam Young 19c0e8d856 Fix wsgi config file access for HTTPD
Bug 1051081

Change-Id: Ie1690c9b1b98ed3f5a78d935878369b7520b35c9
2012-09-14 17:23:38 -04:00

22 lines
534 B
Python
Executable File

import os
from paste import deploy
from keystone import config
from keystone.common import logging
LOG = logging.getLogger(__name__)
CONF = config.CONF
config_files = ['/etc/keystone/keystone.conf']
CONF(project='keystone', default_config_files=config_files)
conf = CONF.config_file[0]
name = os.path.basename(__file__)
if CONF.debug:
CONF.log_opt_values(logging.getLogger(CONF.prog), logging.DEBUG)
options = deploy.appconfig('config:%s' % CONF.config_file[0])
application = deploy.loadapp('config:%s' % conf, name=name)