Skip to content

Commit

Permalink
Avoid deprecated has_key method (#324)
Browse files Browse the repository at this point in the history
The deprecated `has_key` method has been removed from upstream
stdlib.

puppetlabs/puppetlabs-stdlib#1319
  • Loading branch information
traylenator authored May 9, 2023
1 parent 5e6a25e commit 80ce27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class filebeat::config {
$major_version = $filebeat::major_version

if has_key($filebeat::setup, 'ilm.policy') {
if 'ilm.policy' in $filebeat::setup {
file { "${filebeat::config_dir}/ilm_policy.json":
content => to_json({ 'policy' => $filebeat::setup['ilm.policy'] }),
notify => Service['filebeat'],
Expand Down

0 comments on commit 80ce27d

Please sign in to comment.