Storage/S3: Fix deleting objects

This commit is contained in:
Adrian Moennich 2019-11-08 10:42:33 +01:00
parent f3f5fdfc1c
commit 5a8baf3dfe
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class S3StorageBase(Storage):
def delete(self, file_id):
bucket, id_ = self._parse_file_id(file_id)
try:
self.client.delete_object(bucket, id_)
self.client.delete_object(Bucket=bucket, Key=id_)
except Exception as e:
raise StorageError('Could not delete "{}": {}'.format(file_id, e)), None, sys.exc_info()[2]

View File

@ -12,7 +12,7 @@ from setuptools import find_packages, setup
setup(
name='indico-plugin-storage-s3',
version='2.0.4',
version='2.0.5',
description='S3 storage backend for Indico',
url='https://github.com/indico/indico-plugins',
license='MIT',