summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-03-08 16:47:43 -0800
committerJustin Santa Barbara <justin@fathomdb.com>2011-03-08 16:47:43 -0800
commite8c8fd3f232371625f0924410c4c09c32339b113 (patch)
tree4d0daba80f34a57331583590f143d04aeb808960
parenta4830f83afd78cdb96dc3e474eb4efc167de7737 (diff)
Renamed FLAG.paste_config -> FLAG.api_paste_config
-rw-r--r--nova/service.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/service.py b/nova/service.py
index 5a8d58695..460f36f7a 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -56,7 +56,7 @@ flags.DEFINE_integer('ec2_listen_port', 8773, 'port for ec2 api to listen')
flags.DEFINE_string('osapi_listen', "0.0.0.0",
'IP address for OpenStack API to listen')
flags.DEFINE_integer('osapi_listen_port', 8774, 'port for os api to listen')
-flags.DEFINE_string('paste_config', "api-paste.ini",
+flags.DEFINE_string('api_paste_config', "api-paste.ini",
'File name for the paste.deploy config for nova-api')
@@ -240,10 +240,10 @@ class ApiService(WsgiService):
@classmethod
def create(cls, conf=None):
if not conf:
- conf = wsgi.paste_config_file(FLAGS.paste_config)
+ conf = wsgi.paste_config_file(FLAGS.api_paste_config)
if not conf:
message = (_("No paste configuration found for: %s"),
- FLAGS.paste_config)
+ FLAGS.api_paste_config)
raise exception.Error(message)
api_endpoints = ['ec2', 'osapi']
service = cls(conf, api_endpoints)
@@ -315,7 +315,7 @@ def _run_wsgi(paste_config_file, apis):
getattr(FLAGS, "%s_listen" % api)))
if len(apps) == 0:
logging.error(_("No known API applications configured in %s."),
- paste_config_file)
+ paste_config_file)
return
server = wsgi.Server()