mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Some calls to highstate won't have __proxy__ in scope
This commit is contained in:
parent
a615e5a876
commit
525256fa68
1 changed files with 5 additions and 1 deletions
|
@ -529,7 +529,11 @@ def highstate(test=None,
|
|||
if 'pillarenv' in kwargs:
|
||||
opts['pillarenv'] = kwargs['pillarenv']
|
||||
|
||||
st_ = salt.state.HighState(opts, pillar, kwargs.get('__pub_jid'), proxy=__proxy__)
|
||||
try:
|
||||
st_ = salt.state.HighState(opts, pillar, kwargs.get('__pub_jid'), proxy=__proxy__)
|
||||
except NameError:
|
||||
st_ = salt.state.HighState(opts, pillar, kwargs.get('__pub_jid'))
|
||||
|
||||
st_.push_active()
|
||||
try:
|
||||
ret = st_.call_highstate(
|
||||
|
|
Loading…
Add table
Reference in a new issue