summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-12-01 10:44:51 -0600
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-12-01 10:44:51 -0600
commit11dddd7ca4f4264ef3a8f1e251601c1d8fd7a626 (patch)
tree79e5baa9d951e90691c8f1998dff0cdb2b5f0155
parent5269e689046276093b59c5a55ab9ecd3b3ed01b1 (diff)
Move default_flagfile() call to where it will be parsed in time to load the flagfile
-rwxr-xr-xbin/nova-compute3
-rwxr-xr-xbin/nova-instancemonitor2
-rwxr-xr-xbin/nova-network2
-rwxr-xr-xbin/nova-objectstore2
-rwxr-xr-xbin/nova-scheduler2
-rwxr-xr-xbin/nova-volume2
6 files changed, 7 insertions, 6 deletions
diff --git a/bin/nova-compute b/bin/nova-compute
index a66477af5..1054852c4 100755
--- a/bin/nova-compute
+++ b/bin/nova-compute
@@ -38,8 +38,9 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable=C0103
+
diff --git a/bin/nova-instancemonitor b/bin/nova-instancemonitor
index a7b7fb0c6..9b6c40e82 100755
--- a/bin/nova-instancemonitor
+++ b/bin/nova-instancemonitor
@@ -42,10 +42,10 @@ logging.getLogger('boto').setLevel(logging.WARN)
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
logging.warn('Starting instance monitor')
# pylint: disable-msg=C0103
monitor = monitor.InstanceMonitor()
diff --git a/bin/nova-network b/bin/nova-network
index 342a63058..d1fb55261 100755
--- a/bin/nova-network
+++ b/bin/nova-network
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable-msg=C0103
diff --git a/bin/nova-objectstore b/bin/nova-objectstore
index 728f2ee5b..00ae27af9 100755
--- a/bin/nova-objectstore
+++ b/bin/nova-objectstore
@@ -42,8 +42,8 @@ FLAGS = flags.FLAGS
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = handler.get_application() # pylint: disable-msg=C0103
diff --git a/bin/nova-scheduler b/bin/nova-scheduler
index 069b5a6fa..4d1a40cf1 100755
--- a/bin/nova-scheduler
+++ b/bin/nova-scheduler
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create()
diff --git a/bin/nova-volume b/bin/nova-volume
index 26148b0ec..e7281d6c0 100755
--- a/bin/nova-volume
+++ b/bin/nova-volume
@@ -38,8 +38,8 @@ from nova import utils
if __name__ == '__main__':
+ utils.default_flagfile()
twistd.serve(__file__)
if __name__ == '__builtin__':
- utils.default_flagfile()
application = service.Service.create() # pylint: disable-msg=C0103