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:
Matt Phillips 2018-01-11 11:52:18 -05:00 committed by rallytime
parent c00fddd5bb
commit 97ba45c423
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -99,7 +99,8 @@ def cmd(fun, *args, **kwargs):
functions = salt.loader.minion_mods(
opts,
utils=salt.loader.utils(opts))
utils=salt.loader.utils(opts),
context=__context__)
return functions[fun](*args, **kwargs) \
if fun in functions \