saltstack/salt — pull request #9904 by mbirtwell (2014-01-23 16:42:52+00:00)
Title: Always give saltenv argument highest priority

I was having a problem that when passing saltenv as an argument to the salt.state state function it was being ignored. Passing env worked ok apart from generating a warning. This patch seems to make saltenv work.