Remove ping, was added in merge conflict

Supposed to be removed in 361222f, along with
some other random changes to comments and such.
pull/5679/head
Anders F Björklund 2019-11-02 08:58:27 +01:00
parent 3ac263f6e3
commit 47fe5b2822
1 changed files with 0 additions and 8 deletions

View File

@ -1024,7 +1024,6 @@ func validateNetwork(h *host.Host, r command.Runner) string {
}
tryLookup(r)
tryPing(r)
tryRegistry(r)
return ip
}
@ -1058,13 +1057,6 @@ func tryLookup(r command.Runner) {
}
}
func tryPing(r command.Runner) {
// Try both UDP and ICMP to assert basic external connectivity
if err := r.Run("nslookup k8s.io 8.8.8.8 || nslookup k8s.io 1.1.1.1 || ping -c1 8.8.8.8"); err != nil {
out.WarningT("VM is unable to directly connect to the internet: {{.error}}", out.V{"error": err})
}
}
func tryRegistry(r command.Runner) {
// Try an HTTPS connection to the image repository
proxy := os.Getenv("HTTPS_PROXY")