summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-12 17:35:09 -0500
committerTodd Willey <todd@ansolabs.com>2011-01-12 17:35:09 -0500
commit038c9c7663ee1a884726521afe181d30ebe00cc6 (patch)
treeda84fd2b309e195854532ead861b45d871d4ee07 /nova/api
parent6ebf9bb2db0aaad607e35e516bb6d7ffc971c5de (diff)
parent67307428d6d6f47f3215f485a1af720013a5c2ae (diff)
downloadnova-038c9c7663ee1a884726521afe181d30ebe00cc6.tar.gz
nova-038c9c7663ee1a884726521afe181d30ebe00cc6.tar.xz
nova-038c9c7663ee1a884726521afe181d30ebe00cc6.zip
Merge trunk and handle flagfiles with kid-gloves in nova-api. Rename some flags for clarity.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/__init__.py3
-rw-r--r--nova/api/ec2/cloud.py6
2 files changed, 4 insertions, 5 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py
index 1286be5ea..d0adf5e21 100644
--- a/nova/api/ec2/__init__.py
+++ b/nova/api/ec2/__init__.py
@@ -278,8 +278,7 @@ class Authorizer(wsgi.Middleware):
return self.application
else:
LOG.audit(_("Unauthorized request for controller=%s "
- "and action=%s"), controller_name, action,
- context=context)
+ "and action=%s"), controller, action, context=context)
raise webob.exc.HTTPUnauthorized()
def _matches_any_role(self, context, roles):
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 832426b94..e5308ca87 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -263,15 +263,15 @@ class CloudController(object):
name, _sep, host = region.partition('=')
endpoint = '%s://%s:%s%s' % (FLAGS.ec2_prefix,
host,
- FLAGS.cc_port,
+ FLAGS.ec2_port,
FLAGS.ec2_suffix)
regions.append({'regionName': name,
'regionEndpoint': endpoint})
else:
regions = [{'regionName': 'nova',
'regionEndpoint': '%s://%s:%s%s' % (FLAGS.ec2_prefix,
- FLAGS.cc_host,
- FLAGS.cc_port,
+ FLAGS.ec2_host,
+ FLAGS.ec2_port,
FLAGS.ec2_suffix)}]
return {'regionInfo': regions}