fix bad return error text

This commit is contained in:
stewart-yu 2017-11-19 14:58:24 +08:00
parent 936bcd1361
commit 471fd43f53

View File

@ -63,7 +63,7 @@ func EnforceVersionPolicies(versionGetter VersionGetter, newK8sVersionStr string
kubeletVersions, err := versionGetter.KubeletVersions()
if err != nil {
// This is a non-critical error; continue although kubeadm couldn't look this up
skewErrors.Skippable = append(skewErrors.Skippable, fmt.Errorf("Unable to fetch kubeadm version: %v", err))
skewErrors.Skippable = append(skewErrors.Skippable, fmt.Errorf("Unable to fetch kubelet version: %v", err))
}
// Make sure the new version is a supported version (higher than the minimum one supported)