[S3]Only add multipart part_id to partlist if it is not already in there. Closes #324.
This commit is contained in:
parent
bf32bdc042
commit
07dd6e554e
@ -152,7 +152,8 @@ class FakeMultipart(object):
|
||||
|
||||
key = FakeKey(part_id, value)
|
||||
self.parts[part_id] = key
|
||||
insort(self.partlist, part_id)
|
||||
if part_id not in self.partlist:
|
||||
insort(self.partlist, part_id)
|
||||
return key
|
||||
|
||||
def list_parts(self):
|
||||
|
Loading…
Reference in New Issue
Block a user