Skip to content

Commit 47741ef

Browse files
author
florusboth
authored
update excluded_interface_re type to String (#696)
Current version expected an array of strings which broke the network/conf.yaml file as datadog-agent threw an error.
1 parent b9e8d15 commit 47741ef

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

manifests/integrations/network.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@
1414
# 'lo0',
1515
# 'lo',
1616
# ],
17-
# excluded_interface_re => [
18-
# 'eth1.*'
19-
# ]
17+
# excluded_interface_re = 'eth1.*',
2018
# combine_connection_states => true
2119
# }
2220
#
2321
#
2422
class datadog_agent::integrations::network(
2523
Boolean $collect_connection_state = false,
2624
Array[String] $excluded_interfaces = ['lo','lo0'],
27-
Array $excluded_interface_re = [],
25+
String $excluded_interface_re = '',
2826
Boolean $combine_connection_states = true,
2927
) inherits datadog_agent::params {
3028
include ::datadog_agent

templates/agent-conf.d/network.yaml.erb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ instances:
1111
<% end ) -%>
1212
<% end -%>
1313
<% if !@excluded_interface_re.empty? -%>
14-
excluded_interface_re:
15-
<%- (@excluded_interface_re.each do |interface| -%>
16-
- <%= interface %>
17-
<% end ) -%>
14+
excluded_interface_re: <%= @excluded_interface_re %>
1815
<% end -%>
1916
combine_connection_states: <%= @combine_connection_states %>

0 commit comments

Comments
 (0)