Removes dead code from context.request_context
Existing context.request_context() method has invalid code which try to create RequestConext, but its not used in heat anywhere. so those dead code is removed from heat. Closes-bug: #1464655 Change-Id: Icb60f1ba40853523ef35730c2ba5bda6e5970771
This commit is contained in:
parent
bf4ec9f1ae
commit
0576316ac4
|
@ -277,8 +277,6 @@ def ContextMiddleware_filter_factory(global_conf, **local_conf):
|
|||
def request_context(func):
|
||||
@six.wraps(func)
|
||||
def wrapped(self, ctx, *args, **kwargs):
|
||||
if ctx is not None and not isinstance(ctx, context.RequestContext):
|
||||
ctx = context.RequestContext.from_dict(ctx.to_dict())
|
||||
try:
|
||||
return func(self, ctx, *args, **kwargs)
|
||||
except exception.HeatException:
|
||||
|
|
Loading…
Reference in New Issue