|
|
@@ -4,6 +4,7 @@
|
|
|
import argparse
|
|
|
import os
|
|
|
import platform
|
|
|
+import sys
|
|
|
|
|
|
from oslo_concurrency import processutils
|
|
|
from oslo_config import cfg
|
|
|
@@ -100,6 +101,15 @@ def check_locks_dir_empty():
|
|
|
locks_dir)
|
|
|
|
|
|
|
|
|
+def get_application():
|
|
|
+ worker_count, args = get_worker_count_from_args(sys.argv)
|
|
|
+ CONF(args[1:], project='coriolis', version="1.0.0")
|
|
|
+ utils.setup_logging()
|
|
|
+
|
|
|
+ loader = wsgi.Loader(CONF)
|
|
|
+ return loader.load_app("coriolis-api")
|
|
|
+
|
|
|
+
|
|
|
class WSGIService(service.ServiceBase):
|
|
|
def __init__(self, name, worker_count=None, init_rpc=True):
|
|
|
if init_rpc:
|