Skip to content

Commit 4780f9f

Browse files
fix: do not set empty tls_protocol_allowed and tls_ciphers for es
1 parent f268291 commit 4780f9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ instances:
3939
- <%= tag %>
4040
<%- end -%>
4141
<%- end -%>
42-
<%- unless instance['tls_protocols_allowed'].nil? -%>
42+
<%- unless instance['tls_protocols_allowed'].empty? -%>
4343
tls_protocols_allowed:
4444
<%- instance['tls_protocols_allowed'].each do |protocol| -%>
4545
- <%= protocol %>
4646
<%- end -%>
4747
<%- end -%>
48-
<%- unless instance['tls_ciphers'].nil? -%>
48+
<%- unless instance['tls_ciphers'].empty? -%>
4949
tls_ciphers:
5050
<%- instance['tls_ciphers'].each do |cipher| -%>
5151
- <%= cipher %>

0 commit comments

Comments
 (0)