mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #879 from efiop/master
remote: s3: properly delete key
This commit is contained in:
+5
-3
@@ -108,11 +108,13 @@ class RemoteS3(RemoteBase):
|
||||
Logger.debug('Removing s3://{}/{}'.format(path_info['bucket'],
|
||||
path_info['key']))
|
||||
|
||||
obj = self.s3.Object(path_info['bucket'], path_info['key'])
|
||||
try:
|
||||
obj = self.s3.Object(path_info['bucket'], path_info['key']).get()
|
||||
obj.delete()
|
||||
obj.get()
|
||||
except Exception:
|
||||
pass
|
||||
return
|
||||
|
||||
obj.delete()
|
||||
|
||||
def md5s_to_path_infos(self, md5s):
|
||||
return [{'scheme': self.scheme,
|
||||
|
||||
Reference in New Issue
Block a user