mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Storage/S3: Fix deleting objects
This commit is contained in:
parent
f3f5fdfc1c
commit
5a8baf3dfe
@ -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]
|
||||
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user