Skip to content

Commit 4bb8cd3

Browse files
Merge pull request #374 from Clebam/clr_fix_metaparams_downcase
Ensure metaparams casing is preserved
2 parents d7cee48 + cef8c85 commit 4bb8cd3

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)