diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-10-31 15:39:05 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-10-31 15:39:05 +0000 |
commit | 59255d7692a38195225c9189031fa11575002645 (patch) | |
tree | 94deaf5124eeb36e04c58126cc8d83dcf2de819c /nova | |
parent | d48ae3d6364599a79fa45d3e135a06a42b361d30 (diff) | |
parent | 1f60076dd882f7bbc59a835577106c31366b5153 (diff) | |
download | nova-59255d7692a38195225c9189031fa11575002645.tar.gz |
Merge "Use elevated context in resource_tracker.instance_claim"
Diffstat (limited to 'nova')
-rw-r--r-- | nova/compute/resource_tracker.py | 3 |
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 |