From 7ebcc4b134ac0e992354f5db55f03b5ec4083b6f Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Wed, 21 Jul 2021 22:39:44 +0200 Subject: [PATCH] more fixes Signed-off-by: galal-hussein --- pkg/cluster/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/storage.go b/pkg/cluster/storage.go index 0f907f0885..16fcb39fcd 100644 --- a/pkg/cluster/storage.go +++ b/pkg/cluster/storage.go @@ -216,7 +216,7 @@ func doMigrateToken(ctx context.Context, storageClient client.Client, keyValue c // saving the new encrypted data with the right token key if err := storageClient.Create(ctx, newTokenKey, encryptedData); err != nil { if err.Error() == "key exists" { - logrus.Warnln("bootstrap key exists") + logrus.Warn("bootstrap key exists") } else if strings.Contains(err.Error(), "not supported for learner") { logrus.Debug("skipping bootstrap data save on learner") return nil