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
This bug was introduced at /github. com/openstack/ nova/commit/ 06e2319806c6188 98071eba662d5bf 9773be4d39
https:/
diff --git a/nova/context.py b/nova/context.py object) :
index 9815bf3..e78636c 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -179,7 +179,7 @@ class RequestContext(
def elevated(self, read_deleted=None, overwrite=False):
context. is_admin = True
"""Return a version of this context with admin flag set."""
- context = copy.copy(self)
+ context = copy.deepcopy(self)