Don't return blank addresses for pods

This commit is contained in:
Bryan Boreham
2018-02-24 15:36:23 +00:00
parent 1910e5ecc3
commit 2af971e9fd

View File

@@ -120,7 +120,7 @@ func MapPod2IP(_ report.Report, m report.Node) []string {
}
ip, ok := m.Latest.Lookup(kubernetes.IP)
if !ok {
if !ok || ip == "" {
return nil
}
return []string{report.MakeScopedEndpointNodeID("", ip, "")}