Skip to content

Commit df00738

Browse files
committed
(bug) - Corrects suggestion for has_key method
This commit corrects an issue where the suggested replacement for the has_key funciton was to use puppet lang matchers. This is not a suitable replacement, and instead should use puppets 'if "key" in $my_hash' expression instead.
1 parent ff33352 commit df00738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint/plugins/stdlib_deprecated_functions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'size' => 'length()',
2020
'sprintf_hash' => 'sprintf()',
2121
'hash' => 'Puppets built-in Hash.new()',
22-
'has_key' => 'appropriate Puppet match expressions'
22+
'has_key' => '"if \'key\' in $my_hash" instead.'
2323
}.freeze
2424

2525
# These functions have been namespaced in stdlib 9.x.

0 commit comments

Comments
 (0)