mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #81604 from tedyu/kubeadm-close-err
Check the error return from listener close
This commit is contained in:
commit
66b0a0c17d
@ -208,7 +208,10 @@ func (poc PortOpenCheck) Check() (warnings, errorList []error) {
|
|||||||
errorList = []error{errors.Errorf("Port %d is in use", poc.port)}
|
errorList = []error{errors.Errorf("Port %d is in use", poc.port)}
|
||||||
}
|
}
|
||||||
if ln != nil {
|
if ln != nil {
|
||||||
ln.Close()
|
if err = ln.Close(); err != nil {
|
||||||
|
warnings = append(warnings,
|
||||||
|
errors.Errorf("when closing port %d, encountered %v", poc.port, err))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, errorList
|
return nil, errorList
|
||||||
|
Loading…
Reference in New Issue
Block a user