summaryrefslogtreecommitdiff
path: root/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-10-31 15:39:05 +0000
committerGerrit Code Review <review@openstack.org>2013-10-31 15:39:05 +0000
commit59255d7692a38195225c9189031fa11575002645 (patch)
tree94deaf5124eeb36e04c58126cc8d83dcf2de819c /nova
parentd48ae3d6364599a79fa45d3e135a06a42b361d30 (diff)
parent1f60076dd882f7bbc59a835577106c31366b5153 (diff)
downloadnova-59255d7692a38195225c9189031fa11575002645.tar.gz
Merge "Use elevated context in resource_tracker.instance_claim"
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/resource_tracker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/compute/resource_tracker.py b/nova/compute/resource_tracker.py
index 64cbe30751..6d8ba0fe9b 100644
--- a/nova/compute/resource_tracker.py
+++ b/nova/compute/resource_tracker.py
@@ -121,8 +121,9 @@ class ResourceTracker(object):
# Mark resources in-use and update stats
self._update_usage_from_instance(self.compute_node, instance_ref)
+ elevated = context.elevated()
# persist changes to the compute node:
- self._update(context, self.compute_node)
+ self._update(elevated, self.compute_node)
return claim