Skip to content

Commit

Permalink
Cleanup http_check.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
asenci committed Feb 19, 2022
1 parent d62d6a7 commit 2fff883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/integrations/http_check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
'contact' => $contact,
'ca_certs' => $ca_certs,
}]
} elsif !$instances{
} elsif !$instances {
$_instances = []
} else {
$_instances = $instances
Expand All @@ -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
Expand All @@ -271,7 +270,8 @@
}

default: {
Tuple([$key, $value]) }
Tuple([$key, $value])
}
}
})
}
Expand Down

0 comments on commit 2fff883

Please sign in to comment.