From abb733da86c44b907853192c255fa06688c40d9a Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Fri, 26 May 2023 16:09:12 +0200 Subject: [PATCH] Fix host SBOM config --- pkg/collector/corechecks/sbom/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collector/corechecks/sbom/check.go b/pkg/collector/corechecks/sbom/check.go index 76108f906cf02..588797277fe4e 100644 --- a/pkg/collector/corechecks/sbom/check.go +++ b/pkg/collector/corechecks/sbom/check.go @@ -132,7 +132,7 @@ func (c *Check) Configure(integrationConfigDigest uint64, config, initConfig int return err } - c.processor, err = newProcessor(c.workloadmetaStore, sender, c.instance.ChunkSize, time.Duration(c.instance.NewSBOMMaxLatencySeconds)*time.Second, c.instance.HostSBOM) + c.processor, err = newProcessor(c.workloadmetaStore, sender, c.instance.ChunkSize, time.Duration(c.instance.NewSBOMMaxLatencySeconds)*time.Second, ddConfig.Datadog.GetBool("sbom.host.enabled")) if err != nil { return err }