Skip to content

Commit c56018c

Browse files
authored
Merge pull request #1385 from seanmil/fix_merge_block_support
Re-add block support to deprecated top-level merge
2 parents 2a69db0 + 37d51b9 commit c56018c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/puppet/functions/merge.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
Puppet::Functions.create_function(:merge) do
77
dispatch :deprecation_gen do
88
repeated_param 'Any', :args
9+
optional_block_param 'Variant[Callable[2,2], Callable[3,3]]', :block
910
end
10-
def deprecation_gen(*args)
11+
def deprecation_gen(*args, &block)
1112
call_function('deprecation', 'merge', 'This function is deprecated, please use stdlib::merge instead.', false)
12-
call_function('stdlib::merge', *args)
13+
call_function('stdlib::merge', *args, &block)
1314
end
1415
end

0 commit comments

Comments
 (0)