mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-11 06:32:46 +02:00
fix fmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
1e8aea15f8
commit
efcd38be3b
@ -246,7 +246,7 @@ func scanIP(ip string, port int) {
|
|||||||
func portOpen(ip string, port int) bool {
|
func portOpen(ip string, port int) bool {
|
||||||
c, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", ip, port), timeoutPing)
|
c, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", ip, port), timeoutPing)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Debugf("listen at %s:%s failed: %v", ip, port, err)
|
logrus.Debugf("listen at %s:%d failed: %v", ip, port, err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if c != nil {
|
if c != nil {
|
||||||
@ -284,7 +284,7 @@ func isKubernetesDashboard(ip string, port int) (bool, string) {
|
|||||||
resp, err = client.Get(uri)
|
resp, err = client.Get(uri)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Debugf("getting %s:%s failed: %v", ip, port, err)
|
logrus.Debugf("getting %s:%d failed: %v", ip, port, err)
|
||||||
return false, ""
|
return false, ""
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user