Unverified Commit 92076f0d authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #73501 from dlipovetsky/fix-kubelet-exec-error

kubeadm: Make exec error message more informative
parents 38d12df6 4fe0d210
...@@ -33,7 +33,7 @@ func GetKubeletVersion(execer utilsexec.Interface) (*version.Version, error) { ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment