ripienaar/puppet-module-data — pull request #11 by jolynch (2014-07-01 02:30:35+00:00)
Title: Use the global scope for environment lookup

Modules sometimes have their own "environment" variable, which prior to this change would get looked up by module_data and cause an error. I believe that when module_data looks up environment it really means ::environment.

Obviously modules shouldn't be using the environment variable for their own ends, but this patch makes module_data work with those modules as well.