Skip to content

Commit 2cf2dd3

Browse files
committed
One more null check
1 parent be14ac6 commit 2cf2dd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

charts/vector/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ to be more generally usable for other components.
290290
{{- range $componentKind, $configs := .Values.customConfig }}
291291
{{- if eq $componentKind "sources" }}
292292
{{- range $componentId, $componentConfig := $configs }}
293-
{{- if eq (get $componentConfig "type") "datadog_agent" }}
293+
{{- if $componentConfig }}
294+
{{- if eq (get $componentConfig "type") "datadog_agent" }}
295+
{{- end }}
294296
{{- $hasSourceDatadogAgent = true }}
295297
{{- $sourceDatadogAgentPort = mustRegexFind "[0-9]+$" (get $componentConfig "address") }}
296298
{{- if (hasKey $componentConfig "tls") }}

0 commit comments

Comments
 (0)