One more check for presence of __proxy__

This commit is contained in:
C. R. Oldham 2015-10-08 16:21:23 -06:00
parent 62d9f5092e
commit ed23f36279

View File

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