summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorRyan Lane <rlane@wikimedia.org>2011-01-20 01:34:54 +0000
committerRyan Lane <rlane@wikimedia.org>2011-01-20 01:34:54 +0000
commit36681f096574e5fdab26e6167a39e87df0f92fd4 (patch)
treea66de5881c4acd2bd0699d337690b0335810589f /nova/api
parent4203bba809eec90dd8a176c2d4f8869ae748e8bc (diff)
downloadnova-36681f096574e5fdab26e6167a39e87df0f92fd4.tar.gz
nova-36681f096574e5fdab26e6167a39e87df0f92fd4.tar.xz
nova-36681f096574e5fdab26e6167a39e87df0f92fd4.zip
Passing in an elevated context instead of making the call non-elevated.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index c94540793..a64c9fed8 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -133,7 +133,7 @@ class CloudController(object):
return result
def _get_availability_zone_by_host(self, context, host):
- services = db.service_get_all_by_host(context, host)
+ services = db.service_get_all_by_host(context.elevated(), host)
if len(services) > 0:
return services[0]['availability_zone']
return 'unknown zone'