Skip to content

Commit

Permalink
When an aggregator connection is evaluating a wildcard, only include …
Browse files Browse the repository at this point in the history
…connections with compatible type. Closes #687 (#695)
  • Loading branch information
kaidaguerre authored Jul 26, 2021
1 parent 759fc0d commit 6c15bdb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions steampipeconfig/modconfig/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ func (c *Connection) PopulateChildren(connectionMap map[string]*Connection) {
continue
}
if match, _ := path.Match(childName, name); match {
c.Connections[name] = connection
log.Printf("[TRACE] Connection.PopulateChildren connection %s matches pattern %s", name, childName)
// verify that this connection is of a compatible type
if connection.Plugin == c.Plugin {
c.Connections[name] = connection
log.Printf("[TRACE] connection '%s' matches pattern '%s'", name, childName)
}
}
}
}
Expand Down

0 comments on commit 6c15bdb

Please sign in to comment.