fix warning msg

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3688/head
galal-hussein 2021-07-21 22:05:43 +02:00
parent b377839148
commit 2f82bfcf67
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func (c *Cluster) save(ctx context.Context) error {
if err := storageClient.Create(ctx, storageKey(normalizedToken), data); err != nil { if err := storageClient.Create(ctx, storageKey(normalizedToken), data); err != nil {
if err.Error() == "key exists" { if err.Error() == "key exists" {
logrus.Warnln("bootstrap key exists; please follow documentation on updating a node after snapshot restore") logrus.Warnln("bootstrap key already exists")
return nil return nil
} else if strings.Contains(err.Error(), "not supported for learner") { } else if strings.Contains(err.Error(), "not supported for learner") {
logrus.Debug("skipping bootstrap data save on learner") logrus.Debug("skipping bootstrap data save on learner")