Skip to content

Commit

Permalink
use NewExpandMapProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Stumpf committed Nov 12, 2021
1 parent 97dacc4 commit 038e510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/otelcol/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func newBaseParserProvider() config.MapProvider {
configYaml := os.Getenv(configYamlEnvVarName)

if configPath == "" && configYaml != "" {
return parserprovider.NewInMemoryMapProvider(bytes.NewBufferString(configYaml))
return parserprovider.NewExpandMapProvider(parserprovider.NewInMemoryMapProvider(bytes.NewBufferString(configYaml)))
}

return parserprovider.NewDefaultMapProvider(configPath, nil)
Expand Down

0 comments on commit 038e510

Please sign in to comment.