puppetlabs/puppetlabs-registry — pull request #17 by jeffmccune (2012-05-20 01:14:28+00:00)
Title: (#14572) Fix management of the default value

Without this patch applied the default value of a registry key is not
properly managed by Puppet.

The root cause is that the munge operation of the registry_value type
causes the trailing slash to be stripped off when stored in the
parameter value of the resource.

This, in turn, caused the provider to behave as if it was managing a
normal value rather than a default value.

This patch fixes the problem by changing the munge method. Munging the
path of a default value preserves the trailing slash with this patch
applied. This causes the provider to treat the value as a default value
rather than a normal value.