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

Fix how storage_options is passed to get_mapper. #678

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

garciampred
Copy link
Contributor

Change Summary

We identified a bug in the ESMCatalogModel.save method where storage_options were not being handled properly. The code now follows the same procedure used in the load method. if storage_options is None is transformed to an empty dict and double star expansion is used to expand it when passed to fsspec.get_mapper. The old way this storage_options where carried out to Aiobotocore.session is s3fs and makig it crash with this error:

E           TypeError: AioSession.__init__() got an unexpected keyword argument 'storage_options'

This fixed the issue.

Previous way was giving problems with s3fs.
Copy link
Member

@andersy005 andersy005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, @garciampred for this addition!

@andersy005 andersy005 enabled auto-merge (squash) September 18, 2024 19:08
@andersy005 andersy005 merged commit 6ba67e1 into intake:main Sep 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants