From 2fff883d5f0f6afec292ce5974f6bd9f4653070e Mon Sep 17 00:00:00 2001 From: Andre Sencioles Date: Sat, 19 Feb 2022 19:01:42 +1300 Subject: [PATCH] Cleanup http_check.pp --- manifests/integrations/http_check.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/integrations/http_check.pp b/manifests/integrations/http_check.pp index a0b218b9..1c0e4f3a 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 @@ -254,7 +254,6 @@ Tuple([$key, $_value]).next } - $value_array = $_value.filter |$item| { $item =~ /:/ } $value_hash = Hash($_value.map |$item| { $_item = $item.split(':') $i_key = $_item[0].rstrip @@ -271,7 +270,8 @@ } default: { - Tuple([$key, $value]) } + Tuple([$key, $value]) + } } }) }