wamdam/backy2

MINIO PY 7.x fixes

Opened this issue · 1 comments

I had to make the following changes to the minio.py data_backend to match up with changes in Minio API 6 => 7

  • from minio.error import (InvalidResponseError)
  • from minio.error import (InvalidResponseError)
  • from minio.deleteobjects import DeleteObject

rm_many()

    try:
  •          for del_err in self.client.remove_objects(self.bucket_name, uids):
      try:
    
  •          delete_object_list = []
    
  •          for delete_uid in uids:
    
  •              delete_object_list.append(DeleteObject(delete_uid))
    
  •          for del_err in self.client.remove_objects(self.bucket_name, delete_object_list):
    

I forgot the minio.error changes. Removed BucketAlreadyOwnedByYou and BucketAlreadyExists from the minio.error import line.