mirror of https://github.com/k3s-io/k3s
kubeadm: Make exec error message more informative
parent
bb9a12d6f8
commit
4fe0d2107d
|
@ -33,7 +33,7 @@ func GetKubeletVersion(execer utilsexec.Interface) (*version.Version, error) {
|
||||||
command := execer.Command("kubelet", "--version")
|
command := execer.Command("kubelet", "--version")
|
||||||
out, err := command.CombinedOutput()
|
out, err := command.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, errors.Wrap(err, "cannot execute 'kubelet --version'")
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanOutput := strings.TrimSpace(string(out))
|
cleanOutput := strings.TrimSpace(string(out))
|
||||||
|
|
Loading…
Reference in New Issue