mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
One more check for presence of __proxy__
This commit is contained in:
parent
62d9f5092e
commit
ed23f36279
@ -685,10 +685,10 @@ def sls(mods,
|
||||
'{0}.cache.p'.format(kwargs.get('cache_name', 'highstate'))
|
||||
)
|
||||
|
||||
# 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'))
|
||||
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'))
|
||||
|
||||
if kwargs.get('cache'):
|
||||
if os.path.isfile(cfn):
|
||||
|
Loading…
Reference in New Issue
Block a user