mirror of https://github.com/k3s-io/k3s
fix warning msg
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>pull/3688/head
parent
b377839148
commit
2f82bfcf67
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue