puppetlabs/puppet — pull request #3390 by briancain (2014-12-05 18:59:28+00:00)
Title: (PUP-3567) Remove current_environment check in Puppet::Indirector::Reque...

...st#environment=

Prior to this commit, there was an environment setter that allowed an
environment to be set if it existed in `Puppet.lookup(:current_environment)`. This commit changes that by only
allowing environments to be set from what exists within Puppet.lookup(:environments).