mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36696 from cro/proxy_in_sls_id
pass __proxy__ in state.sls_id
This commit is contained in:
commit
6fa9ec36d2
1 changed files with 4 additions and 1 deletions
|
@ -1122,7 +1122,10 @@ def sls_id(
|
|||
opts['test'] = _get_test_value(test, **kwargs)
|
||||
if 'pillarenv' in kwargs:
|
||||
opts['pillarenv'] = kwargs['pillarenv']
|
||||
st_ = salt.state.HighState(opts)
|
||||
try:
|
||||
st_ = salt.state.HighState(opts, proxy=__proxy__)
|
||||
except NameError:
|
||||
st_ = salt.state.HighState(opts)
|
||||
if isinstance(mods, six.string_types):
|
||||
split_mods = mods.split(',')
|
||||
st_.push_active()
|
||||
|
|
Loading…
Add table
Reference in a new issue