From 80ce27d1f6bf45e6229a026a5ce549798596b4a9 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Tue, 9 May 2023 17:30:18 +0200 Subject: [PATCH] Avoid deprecated has_key method (#324) The deprecated `has_key` method has been removed from upstream stdlib. https://github.com/puppetlabs/puppetlabs-stdlib/pull/1319 --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index efc11ff..0767c75 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -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'],