From ab517600538545717743fc1450398875f870f19a Mon Sep 17 00:00:00 2001 From: Ramesh Sencha Date: Tue, 16 Jan 2024 19:37:52 +0530 Subject: [PATCH] (CAT-1692) - Compatibility fix with puppet 7.14 --- lib/puppet/type/concat_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/type/concat_file.rb b/lib/puppet/type/concat_file.rb index b0978f09..ddde4f01 100644 --- a/lib/puppet/type/concat_file.rb +++ b/lib/puppet/type/concat_file.rb @@ -297,7 +297,7 @@ def nested_merge(hash1, hash2) def fragment_content(r) if r[:content].nil? == false # Explicitly resolve deferred values. - fragment_content = r[:content].instance_of?(Puppet::Pops::Evaluator::DeferredValue) ? r[:content].resolve : r[:content] + fragment_content = r[:content].respond_to?(:resolve) ? r[:content].resolve : r[:content] elsif r[:source].nil? == false @source = nil Array(r[:source]).each do |source|