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 2ce39af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 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 @@ -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 =~ /:/ }
Expand All @@ -271,7 +271,8 @@
}

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

0 comments on commit 2ce39af

Please sign in to comment.