Remove unused parameter overwrite in elevated

Nova uses overwrite in constructor of RequestContext to
update thread's local context or not, we don't need it
in method elevated, due to we never replace thread's local
context when get a copy with current context.

Change-Id: Ia85dfc4ddf4d4d31a7367c1ff90da118f503ba09
This commit is contained in:
ChangBo Guo(gcb) 2015-07-17 13:37:01 +08:00 committed by ChangBo Guo(gcb)
parent d91fb80e51
commit 888abec725
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class RequestContext(context.RequestContext):
def from_dict(cls, values):
return cls(**values)
def elevated(self, read_deleted=None, overwrite=False):
def elevated(self, read_deleted=None):
"""Return a version of this context with admin flag set."""
context = copy.deepcopy(self)
context.is_admin = True