Skip to content

Commit

Permalink
(CAT-1692) - Compatibility fix with puppet 7.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Jan 16, 2024
1 parent 5e19abc commit ab51760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/concat_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit ab51760

Please sign in to comment.