Santhosh/Deepak | Fixed the import issue and config.load_paste_app issue
This commit is contained in:
parent
fed70a5272
commit
fd249e2223
@ -33,7 +33,6 @@ from paste import deploy
|
|||||||
|
|
||||||
from quantum.common import flags
|
from quantum.common import flags
|
||||||
from quantum.common import exceptions as exception
|
from quantum.common import exceptions as exception
|
||||||
from quantum.common import extensions
|
|
||||||
|
|
||||||
DEFAULT_LOG_FORMAT = "%(asctime)s %(levelname)8s [%(name)s] %(message)s"
|
DEFAULT_LOG_FORMAT = "%(asctime)s %(levelname)8s [%(name)s] %(message)s"
|
||||||
DEFAULT_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
|
DEFAULT_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
|
||||||
|
@ -102,7 +102,9 @@ def serve_wsgi(cls, conf=None, options=None, args=None):
|
|||||||
|
|
||||||
def _run_wsgi(app_name, paste_conf, paste_config_file):
|
def _run_wsgi(app_name, paste_conf, paste_config_file):
|
||||||
LOG.info(_('Using paste.deploy config at: %s'), paste_config_file)
|
LOG.info(_('Using paste.deploy config at: %s'), paste_config_file)
|
||||||
app = config.load_paste_app(paste_config_file, app_name)
|
conf, app = config.load_paste_app(app_name,
|
||||||
|
{'config_file': paste_config_file},
|
||||||
|
None)
|
||||||
if not app:
|
if not app:
|
||||||
LOG.error(_('No known API applications configured in %s.'),
|
LOG.error(_('No known API applications configured in %s.'),
|
||||||
paste_config_file)
|
paste_config_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user