Commit 2af971e9 authored by Bryan Boreham's avatar Bryan Boreham
Browse files

Don't return blank addresses for pods

parent 1910e5ec
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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, "")}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment