]> source.dussan.org Git - gitea.git/commit
Check first if minio bucket exists before trying to create it (#26420) (#26465)
authorGiteabot <teabot@gitea.io>
Sat, 12 Aug 2023 09:00:51 +0000 (17:00 +0800)
committerGitHub <noreply@github.com>
Sat, 12 Aug 2023 09:00:51 +0000 (09:00 +0000)
commit2d1202b32c1a975fe6cf7b139d1ab4ed292bcca1
treef4ae464b06cadff9734ba084a15be6bcda247d45
parent9112ce22a400d66c82b429fae72e8637a34727c7
Check first if minio bucket exists before trying to create it (#26420) (#26465)

Backport #26420 by @lunny

For some reason, the permission of the client_id and secret may cannot
create bucket, so now we will check whether bucket does exist first and
then try to create a bucket if it doesn't exist.

Try to fix #25984

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
modules/storage/minio.go