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]) + } } }) }