diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-22 17:50:26 -0800 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-22 17:50:26 -0800 |
| commit | 79f6c437b486262bab3faacb59197a5cae30b2bd (patch) | |
| tree | 9f19dd36299d3902bc108b23a3eb02543096d792 | |
| parent | b6254db80ca9841361775a92b85f88db7251f857 (diff) | |
Added create static method to ApiService
| -rw-r--r-- | nova/apiservice.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/apiservice.py b/nova/apiservice.py index 7b453e19f..1914b9e59 100644 --- a/nova/apiservice.py +++ b/nova/apiservice.py @@ -72,6 +72,11 @@ class ApiService(object): def start(self): _run_app(self.conf) + @staticmethod + def create(): + conf = wsgi.paste_config_file('nova-api.conf') + return serve(conf) + def serve(conf): LOG.audit(_("Starting nova-api node (version %s)"), @@ -83,3 +88,5 @@ def serve(conf): service = ApiService(conf) service.start() + + return service |
