Skip to content

Commit cef8c85

Browse files
committed
Ensure metaparams casing is preserved
1 parent c5d70da commit cef8c85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def canonicalize(context, resources)
8080
downcased_result = recursively_downcase(canonicalized)
8181
downcased_resource = recursively_downcase(r)
8282
# Ensure that metaparameters are preserved when we canonicalize the resource.
83-
metaparams = downcased_resource.select { |key, _value| Puppet::Type.metaparam?(key) }
83+
metaparams = r.select { |key, _value| Puppet::Type.metaparam?(key) }
8484
canonicalized.merge!(metaparams) unless metaparams.nil?
8585
downcased_result.each do |key, value|
8686
# Canonicalize to the manifest value unless the downcased strings match and the attribute is not an enum:

0 commit comments

Comments
 (0)