puppetlabs/facter — pull request #168 by cprice-puppet (2012-02-08 01:30:06+00:00)
Title: (#12311) use 'ensure' to restore env vars in Resolution.with_env

This will make sure that the environment variables get restored to their original values, even if the caller's yield block throws an exception or uses a "return" statement.