mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix docs
This commit is contained in:
parent
0c3ebc0795
commit
1b28ce55a6
2 changed files with 3 additions and 3 deletions
0
doc/topics/releases/3007.0.rst
Normal file
0
doc/topics/releases/3007.0.rst
Normal file
|
@ -16,12 +16,12 @@ def request_context(data):
|
|||
"""
|
||||
A context manager that sets and un-sets the loader context
|
||||
"""
|
||||
tok = loader_ctxvar.set(data)
|
||||
tok = request_ctxvar.set(data)
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
loader_ctxvar.reset(tok)
|
||||
request_ctxvar.reset(tok)
|
||||
|
||||
|
||||
def get_request_context():
|
||||
return loader_ctxvar.get({})
|
||||
return request_ctxvar.get({})
|
||||
|
|
Loading…
Add table
Reference in a new issue