mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
try/except for when __proxy__ is not injected.
This commit is contained in:
parent
e8e53d60be
commit
891004f3be
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, proxy=__proxy__)
|
||||
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