File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 241241 $_instances = $instances
242242 }
243243
244- $instances_array = $_instances.map |$instance | {
244+ $instances_array = datadog_agent::clean_empty( $_instances.map |$instance | {
245245 Hash($instance .map |$key , $value | {
246246 case $key {
247247 ' sitename' : {
248248 Tuple([' name' , $value ])
249249 }
250250
251251 ' data' , ' headers' : {
252- $_value = datadog_agent::clean_empty($value )
253- if !$_value.is_a(Array) {
254- Tuple([$key , $_value])
255- }
256-
257- $value_hash = Hash($_value.map |$item | {
252+ $value_hash = Hash($value .map |$item | {
258253 $_item = $item .split(' :' )
259254 $i_key = $_item[0].rstrip
260255 $i_value = $_item[1, - 1].join(' :' ).lstrip
261256
262257 Tuple([$i_key , $i_value ])
263258 })
264259
265- Tuple([$key , datadog_agent::clean_empty( $value_hash ) ])
260+ Tuple([$key , $value_hash ])
266261 }
267262
268263 ' tags' : {
269- Tuple([$key , datadog_agent::clean_empty( $value ) ])
264+ Tuple([$key , $value ])
270265 }
271266
272267 default: {
273268 Tuple([$key , $value ])
274269 }
275270 }
276271 })
277- }
272+ })
278273
279274 $legacy_dst = " ${datadog_agent::params::legacy_conf_dir} /http_check.yaml"
280275 if $::datadog_agent::_agent_major_version > 5 {
You can’t perform that action at this time.
0 commit comments