replace error with warn in delete

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3688/head
galal-hussein 3 years ago
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…
Cancel
Save