Skip to content

Commit 5b0cacc

Browse files
author
Israel Blancas
committed
Fix lint
Signed-off-by: Israel Blancas <[email protected]>
1 parent b5f3fd1 commit 5b0cacc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/manifests/collector/container.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ func Container(cfg config.Config, logger logr.Logger, otelcol v1beta1.OpenTeleme
177177
)
178178
}
179179

180-
if envVars, err := otelcol.Spec.Config.GetEnvironmentVariables(logger); err != nil {
180+
if configEnvVars, err := otelcol.Spec.Config.GetEnvironmentVariables(logger); err != nil {
181181
logger.Error(err, "could not get the environment variables from the config")
182182
} else {
183-
envVars = append(envVars, envVars...)
183+
envVars = append(envVars, configEnvVars...)
184184
}
185185

186186
envVars = append(envVars, proxy.ReadProxyVarsFromEnv()...)

0 commit comments

Comments
 (0)