Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINIO PY 7.x fixes #98

Open
networkjackbb opened this issue Jan 1, 2024 · 2 comments
Open

MINIO PY 7.x fixes #98

networkjackbb opened this issue Jan 1, 2024 · 2 comments

Comments

@networkjackbb
Copy link

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):
    
@networkjackbb
Copy link
Author

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

@shulemmosko
Copy link

i have an updated version of the the minio.py file that incorporates these changes and it seems to be working fine with no errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants