Merge pull request #36696 from cro/proxy_in_sls_id

pass __proxy__ in state.sls_id
This commit is contained in:
Mike Place 2016-10-01 18:37:50 +09:00 committed by GitHub
commit 6fa9ec36d2

View file

@ -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()