mirror of https://github.com/k3s-io/k3s
replace error with warn in delete
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>pull/3688/head
parent
2f82bfcf67
commit
b4401296ec
|
@ -226,5 +226,8 @@ func doMigrateToken(ctx context.Context, storageClient client.Client, keyValue c
|
|||
}
|
||||
logrus.Infof("created bootstrap key %s", newTokenKey)
|
||||
// deleting the old key
|
||||
return storageClient.Delete(ctx, oldTokenKey, keyValue.Modified)
|
||||
if err := storageClient.Delete(ctx, oldTokenKey, keyValue.Modified); err != nil {
|
||||
logrus.Warnf("failed to delete old bootstrap key %s", oldTokenKey)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue