diff options
author | Ryan Lane <rlane@wikimedia.org> | 2011-01-20 20:04:57 +0000 |
---|---|---|
committer | Tarmac <> | 2011-01-20 20:04:57 +0000 |
commit | c44986b60e598deaa3e2d85b3667ef0b0894a68c (patch) | |
tree | 65804bb1a42fcde88612240ee33dfdcf4e6bacb2 | |
parent | a90276387c069057fb2f4f3ed5b744f9fd7c4987 (diff) | |
parent | 36681f096574e5fdab26e6167a39e87df0f92fd4 (diff) | |
download | nova-c44986b60e598deaa3e2d85b3667ef0b0894a68c.tar.gz nova-c44986b60e598deaa3e2d85b3667ef0b0894a68c.tar.xz nova-c44986b60e598deaa3e2d85b3667ef0b0894a68c.zip |
Fixes issue with describe_instances requiring an admin context.
-rw-r--r-- | nova/api/ec2/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index f0aa8d813..f63ec9085 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' |