Commit b4401296 authored by galal-hussein's avatar galal-hussein

replace error with warn in delete

parent 2f82bfcf
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment