mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
add __context__ to salt-runner for passthrough
minion modules are provided a __context__ to indicate success/failure outside the contents of their response. runners also are provided this, so we pass it down.
This commit is contained in:
parent
c00fddd5bb
commit
97ba45c423
@ -99,7 +99,8 @@ def cmd(fun, *args, **kwargs):
|
|||||||
|
|
||||||
functions = salt.loader.minion_mods(
|
functions = salt.loader.minion_mods(
|
||||||
opts,
|
opts,
|
||||||
utils=salt.loader.utils(opts))
|
utils=salt.loader.utils(opts),
|
||||||
|
context=__context__)
|
||||||
|
|
||||||
return functions[fun](*args, **kwargs) \
|
return functions[fun](*args, **kwargs) \
|
||||||
if fun in functions \
|
if fun in functions \
|
||||||
|
Loading…
Reference in New Issue
Block a user