Minor fixes: indentation in bin/quantum and fix import in config.py

This commit is contained in:
Brad Hall 2011-05-20 16:22:48 -07:00
parent 3e809e45f2
commit b6f2ca5aa0
2 changed files with 7 additions and 8 deletions

View File

@ -37,9 +37,9 @@ from quantum.common import wsgi
from quantum.common import config
def create_options(parser):
"""
"""
Sets up the CLI and config-file options that may be
parsed and program commands.
parsed and program commands.
:param parser: The option parser
"""
config.add_common_options(parser)
@ -53,10 +53,9 @@ if __name__ == '__main__':
try:
conf, app = config.load_paste_app('quantum', options, args)
server = wsgi.Server()
server.start(app, int(conf['bind_port']), conf['bind_host'])
server.wait()
server = wsgi.Server()
server.start(app, int(conf['bind_port']), conf['bind_host'])
server.wait()
except RuntimeError, e:
sys.exit("ERROR: %s" % e)
sys.exit("ERROR: %s" % e)

View File

@ -31,7 +31,7 @@ import sys
from paste import deploy
import quantum.common.exception as exception
import quantum.common.exceptions as exception
DEFAULT_LOG_FORMAT = "%(asctime)s %(levelname)8s [%(name)s] %(message)s"
DEFAULT_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"