summaryrefslogtreecommitdiffstats
path: root/nova/service.py
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-03-07 14:42:36 -0800
committerJustin Santa Barbara <justin@fathomdb.com>2011-03-07 14:42:36 -0800
commitede88283729663f11d913cc54bcf8ee08028d98f (patch)
tree900b53065006dc4250a3c6ddaa14669a197463d2 /nova/service.py
parentf65867673eff81d649d1a43e895dfae913d83e84 (diff)
downloadnova-ede88283729663f11d913cc54bcf8ee08028d98f.tar.gz
nova-ede88283729663f11d913cc54bcf8ee08028d98f.tar.xz
nova-ede88283729663f11d913cc54bcf8ee08028d98f.zip
A few formatting niceties
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nova/service.py b/nova/service.py
index 8fdaca0a5..389a6b2df 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -42,6 +42,7 @@ from nova import utils
from nova import version
from nova import wsgi
+
FLAGS = flags.FLAGS
flags.DEFINE_integer('report_interval', 10,
'seconds between nodes reporting state to datastore',
@@ -271,6 +272,11 @@ def serve(*services):
x.start()
+def wait():
+ while True:
+ greenthread.sleep(5)
+
+
def serve_wsgi(cls, conf):
try:
service = cls.create(conf)
@@ -290,11 +296,6 @@ def serve_wsgi(cls, conf):
return service
-def wait():
- while True:
- greenthread.sleep(5)
-
-
def _run_wsgi(paste_config_file, apis):
logging.debug(_("Using paste.deploy config at: %s"), paste_config_file)
apps = []