Skip to content

add in connect_kwargs arg to S3FileSystem for passing boto3 args to the client upon connection #69

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

Merged
merged 1 commit into from
Oct 21, 2016

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Sep 29, 2016

No description provided.

@mrocklin
Copy link
Collaborator

cc @martindurant any thoughts?

@@ -166,7 +171,8 @@ def connect(self, refresh=False):
self.session = boto3.Session(self.key, self.secret, self.token,
**self.kwargs)
if tok not in self._conn:
Copy link
Member

Choose a reason for hiding this comment

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

the token should fold in the connect_kwargs, because a connection to one endpoint is not the same as a connection to another, even if all the credentials are the same.

@@ -113,12 +114,16 @@ class S3FileSystem(object):
read_timeout = 15

def __init__(self, anon=False, key=None, secret=None, token=None,
use_ssl=True, **kwargs):
use_ssl=True, connect_kwargs=None, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

I would call this client_kwargs to be more specific

@jreback
Copy link
Contributor Author

jreback commented Oct 20, 2016

@martindurant fixed up and now passing. the tokenize was the problem. thanks!

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

Successfully merging this pull request may close these issues.

3 participants