ripienaar/puppet-module-data — pull request #13 by telamonian (2014-08-16 19:12:44+00:00)
Title: Fixed hash merge behavior when :merge_behavior deeper is set

I was getting incorrect behavior for hash merges in Hiera for data files placed in modules. Following the "deeper" hash merge example in https://docs.puppetlabs.com/hiera/1/lookup_types.html, I was getting `{"bob"=>{"uid"=>1000, "group"=>"deglitch"}, "ash"=>{"uid"=>502, "shell"=>"/bin/zsh", "group"=>"common"}, "jen"=>{"uid"=>503, "shell"=>"/bin/zsh", "group"=>"deglitch"}}` for a hash merge between Debian.yaml and common.yaml files placed in a module, and ` {"bob"=>{"uid"=>1000, "shell"=>"/bin/bash", "group"=>"deglitch"}, "ash"=>{"uid"=>502, "shell"=>"/bin/zsh", "group"=>"common"}, "jen"=>{"uid"=>503, "shell"=>"/bin/zsh", "group"=>"deglitch"}}` for a hash merge between Debian.yaml and common.yaml files placed at the Puppet root. Changing a few lines around in module_data_backend.rb fixed the problem.