Skip to content

Commit 6104239

Browse files
authored
Merge pull request #134 from alexjfisher/type_is_valid_parameter_name
Fix for resources that have a parameter named `type`
2 parents a60fd2d + a459e3e commit 6104239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/face/catalog/diff.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
value.map do |resource_id, resource|
284284
next if resource.nil?
285285

286-
if resource.is_a?(Hash) && resource.key?(:type)
286+
if resource.is_a?(Hash) && resource.key?(:type) && !%i[params_in_old params_in_new].include?(header)
287287
# If we find an actual resource print it out
288288
format.resource_reference(header, resource_id, resource)
289289
elsif resource.is_a?(Array)

0 commit comments

Comments
 (0)