don't override the minion config unless requested

This commit is contained in:
Thomas S Hatch 2015-07-27 10:51:03 -06:00
parent 26c858361c
commit 65d6ec0659

View file

@ -768,7 +768,8 @@ def top(topfn,
st_ = salt.state.HighState(opts, pillar)
st_.push_active()
st_.opts['state_top'] = os.path.join('salt://', topfn)
st_.opts['state_top_saltenv'] = saltenv
if saltenv:
st_.opts['state_top_saltenv'] = saltenv
try:
ret = st_.call_highstate(
exclude=kwargs.get('exclude', []),