Skip to content

Commit a98533f

Browse files
author
Seth Cleveland
committed
Removing iteration to support older puppet versions
1 parent 9c37c07 commit a98533f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

manifests/integrations/postgres.pp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@
5252
validate_array($tables)
5353
validate_array($custom_metrics)
5454

55-
# perform a cursory validation of the custom metrics
56-
$custom_metrics.each |$metric| {
57-
validate_hash($metric)
58-
validate_string($metric["query"])
59-
validate_bool($metric["relation"])
60-
validate_array($metric["descriptors"])
61-
validate_hash($metric["metrics"])
62-
}
63-
6455
file { "${datadog_agent::params::conf_dir}/postgres.yaml":
6556
ensure => file,
6657
owner => $datadog_agent::params::dd_user,

0 commit comments

Comments
 (0)