From 2ce39af98dfb413a2bb0b8615fe5373641204c7e Mon Sep 17 00:00:00 2001 From: Andre Sencioles Date: Sat, 19 Feb 2022 18:50:54 +1300 Subject: [PATCH] Cleanup http_check.pp --- manifests/integrations/http_check.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/integrations/http_check.pp b/manifests/integrations/http_check.pp index a0b218b9..b2a4067f 100644 --- a/manifests/integrations/http_check.pp +++ b/manifests/integrations/http_check.pp @@ -235,7 +235,7 @@ 'contact' => $contact, 'ca_certs' => $ca_certs, }] - } elsif !$instances{ + } elsif !$instances { $_instances = [] } else { $_instances = $instances @@ -251,7 +251,7 @@ 'data', 'headers': { $_value = datadog_agent::clean_empty($value) if !$_value.is_a(Array) { - Tuple([$key, $_value]).next + Tuple([$key, $_value]) } $value_array = $_value.filter |$item| { $item =~ /:/ } @@ -271,7 +271,8 @@ } default: { - Tuple([$key, $value]) } + Tuple([$key, $value]) + } } }) }