puppetlabs/puppet — pull request #3198 by demophoon (2014-10-15 18:50:51+00:00)
Title: Fix/stable/pup 3302 puppet resource directory environments

Before this fix when `puppet resource file` was being used set with
source defined puppet would fail and raise an an EnvironmentNotFound
error.

@jpartlow and I dug in and investigated why this error was being raised
and found that it was because we need an environment object
in Puppet::Indirector::Request#environment= and instead of the
none environment being passed around it is passed as the string "none"
which is a directory environment that does not exist. This is what is
raising the EnvironmentNotFound error in puppet.

Instead of passing around a string we pass around the none environment
to fix the issue.