Skip to content

Commit 80ce27d

Browse files
authored
Avoid deprecated has_key method (#324)
The deprecated `has_key` method has been removed from upstream stdlib. puppetlabs/puppetlabs-stdlib#1319
1 parent 5e6a25e commit 80ce27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class filebeat::config {
77
$major_version = $filebeat::major_version
88

9-
if has_key($filebeat::setup, 'ilm.policy') {
9+
if 'ilm.policy' in $filebeat::setup {
1010
file { "${filebeat::config_dir}/ilm_policy.json":
1111
content => to_json({ 'policy' => $filebeat::setup['ilm.policy'] }),
1212
notify => Service['filebeat'],

0 commit comments

Comments
 (0)