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)
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)
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"