Skip to content

Commit 9998a03

Browse files
authored
kubeadm: fix a wrong log message
1 parent 25be4a4 commit 9998a03

File tree

1 file changed

+1
-1
lines changed
  • cmd/kubeadm/app/discovery/file

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/discovery/file/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func ValidateConfigInfo(config *clientcmdapi.Config, discoveryTimeout time.Durat
103103
klog.Warningf("[discovery] Could not access the %s ConfigMap for refreshing the cluster-info information, but the TLS cert is valid so proceeding...\n", bootstrapapi.ConfigMapClusterInfo)
104104
return true, nil
105105
}
106-
klog.V(1).Infof("[discovery] Error reading the %s ConfigMap, will try again: %v\n", bootstrapapi.ConfigMapClusterInfo, err)
106+
klog.V(1).Infof("[discovery] Error reading the %s ConfigMap, will try again: %v\n", bootstrapapi.ConfigMapClusterInfo, lastError)
107107
return false, nil
108108
}
109109
return true, nil

0 commit comments

Comments
 (0)