Procházet zdrojové kódy

fix(storage): 🐛 HeadBucket Operation Permission (#7733)

Co-authored-by: 莫岳恒 <moyueheng@datagrand.com>
tags/0.7.3
Vimpas před 1 rokem
rodič
revize
4682e0ac7c
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3
    0
      api/extensions/storage/s3_storage.py

+ 3
- 0
api/extensions/storage/s3_storage.py Zobrazit soubor

@@ -35,6 +35,9 @@ class S3Storage(BaseStorage):
# if bucket not exists, create it
if e.response["Error"]["Code"] == "404":
self.client.create_bucket(Bucket=self.bucket_name)
# if bucket is not accessible, pass, maybe the bucket is existing but not accessible
elif e.response["Error"]["Code"] == "403":
pass
else:
# other error, raise exception
raise

Načítá se…
Zrušit
Uložit