Don't return blank addresses for pods

This commit is contained in:
Bryan Boreham
2018-02-25 14:05:40 +00:00
parent 1910e5ecc3
commit 2af971e9fd
+1 -1
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, "")}