Comment 8 for bug 1506958

Revision history for this message
Alberto Murillo (powerbsd-o) wrote :

This bug was introduced at
https://github.com/openstack/nova/commit/06e2319806c618898071eba662d5bf9773be4d39

diff --git a/nova/context.py b/nova/context.py
index 9815bf3..e78636c 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -179,7 +179,7 @@ class RequestContext(object):

     def elevated(self, read_deleted=None, overwrite=False):
         """Return a version of this context with admin flag set."""
- context = copy.copy(self)
+ context = copy.deepcopy(self)
         context.is_admin = True