mirror of
https://github.com/weaveworks/scope.git
synced 2026-09-06 10:17:19 +00:00
Merge pull request #3201 from weaveworks/dont-map-pod-blank-ip
Don't return blank addresses for pods
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ func MapPod2IP(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