1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-08 18:39:40 +00:00

Merge pull request #1980 from superseb/re_try_logging

Standardize (re-)try logging
This commit is contained in:
Sebastiaan van Steenis
2020-03-23 13:30:37 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -956,7 +956,7 @@ func setNodeAnnotationsLabelsTaints(k8sClient *kubernetes.Clientset, host *hosts
for retries := 0; retries <= 5; retries++ {
node, err = k8s.GetNode(k8sClient, host.HostnameOverride)
if err != nil {
logrus.Debugf("[hosts] Can't find node by name [%s], retrying..", host.HostnameOverride)
logrus.Debugf("[hosts] Can't find node by name [%s], error: %v", host.HostnameOverride, err)
time.Sleep(2 * time.Second)
continue
}