saltstack/salt — pull request #10131 by bretep (2014-02-03 03:20:42+00:00)
Title: CRITICAL: State's don't send the environment...

CRITICAL: State's don't send the environment to render the pillar!

This is why `salt-call pillar.items` works and `salt-call state.highstate` does not.

There defiantly needs to be a test around this bug. I've tested this fix with both the `environment: dev` and `#environment: dev` in `/etc/salt/minion`. It works just fine.

## pillar.items
Here is the corresponding code that does work: https://github.com/saltstack/salt/blob/develop/salt/minion.py#L283