mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-05 16:59:36 +00:00
Don't return blank addresses for pods
This commit is contained in:
@@ -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, "")}
|
||||
|
||||
Reference in New Issue
Block a user