Skip to content

Commit

Permalink
Log ip not hostname. Use quotes for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Jul 24, 2020
1 parent e7058d9 commit 4b04b31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/driver/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ControlPlaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName
hostname := oci.DefaultBindIPV4
ip := net.ParseIP(hostname)
if ip == nil {
return hostname, ip, port, fmt.Errorf("failed to parse ip for %s", hostname)
return hostname, ip, port, fmt.Errorf("failed to parse ip for %q", hostname)
}

// https://github.com/kubernetes/minikube/issues/3878
Expand All @@ -49,7 +49,7 @@ func ControlPlaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName
}
ip := net.ParseIP(cp.IP)
if ip == nil {
return hostname, ip, cp.Port, fmt.Errorf("failed to parse ip for %s", hostname)
return hostname, ip, cp.Port, fmt.Errorf("failed to parse ip for %q", cp.IP)
}
return hostname, ip, cp.Port, nil
}

0 comments on commit 4b04b31

Please sign in to comment.