Merge pull request #1043 from weaveworks/1040-docker-exec-crash

Distinguish between reporting probes and controlling probes
This commit is contained in:
Tom Wilkie
2016-02-26 15:23:47 +00:00
8 changed files with 28 additions and 29 deletions
+4 -1
View File
@@ -101,7 +101,10 @@ func controlsFor(topology report.Topology, nodeID string) []ControlInstance {
for _, id := range node.Controls.Controls {
if control, ok := topology.Controls[id]; ok {
probeID, _ := node.Latest.Lookup(report.ProbeID)
probeID, ok := node.Latest.Lookup(report.ControlProbeID)
if !ok {
continue
}
result = append(result, ControlInstance{
ProbeID: probeID,
NodeID: nodeID,