Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 2e08561

Browse files
authored
Merge pull request #112 from DataDog/sunhay/fix-containers-on-kubelet
Always set default listener to docker and optionally ecs if it exists
2 parents 5e7000c + c87be1c commit 2e08561

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

util/container/container.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ var (
2222

2323
// Unmarshal the listeners once and store the result
2424
func initContainerListeners() {
25-
if err := config.Datadog.UnmarshalKey("listeners", &listeners); err != nil {
26-
log.Errorf("unable to parse listeners from the datadog config, using default listeners - %s", err)
27-
listeners = GetDefaultListeners()
28-
}
25+
listeners = GetDefaultListeners()
2926
hasFatalError = make(map[string]bool)
3027
}
3128

0 commit comments

Comments
 (0)