Skip to content

Commit

Permalink
fix exporter config
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Jun 28, 2021
1 parent e041ea3 commit b482aff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/conf/conf.go
Expand Up @@ -305,8 +305,11 @@ func GetUniqueExporters(p *node.Node, configFp string) ([]string, error) {
}
exporterMap := make(map[string]string)
for _, ec := range exportChildren {
exporterType := definedExporters.GetChildS(ec).GetChildContentS("exporter")
exporterMap[exporterType] = ec
e := definedExporters.GetChildS(ec)
if e != nil {
exporterType := e.GetChildContentS("exporter")
exporterMap[exporterType] = ec
}
}

for _, value := range exporterMap {
Expand Down

0 comments on commit b482aff

Please sign in to comment.