Skip to content

Commit 238ec16

Browse files
committed
(maint) Fixes bug in copy_metaparams
Previously the copy_metaparams method was written incorrectly, this commit fixes the logic to correctly check whether a parameter is both a metaparameter AND not :alias before copying it over
1 parent 7d28a45 commit 238ec16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def self.newmetaparam(name, options = {}, &block)
361361
# @return [Void]
362362
def copy_metaparams(parameters)
363363
parameters.each do |name, param|
364-
self[name] = param.value if param.metaparam? && !name == :alias
364+
self[name] = param.value if param.metaparam? && name != :alias
365365
end
366366
nil
367367
end

0 commit comments

Comments
 (0)