Skip to content

Commit

Permalink
Merge pull request #165 from leg100/default-creds-check-to-false
Browse files Browse the repository at this point in the history
Default credentials check to false
  • Loading branch information
martindurant committed Aug 16, 2019
2 parents 1471ed2 + a0acf55 commit be51512
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 136 deletions.
4 changes: 2 additions & 2 deletions gcsfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class GCSFileSystem(fsspec.AbstractFileSystem):
across an insecure network.
check_connection: bool
When token=None, gcsfs will attempt various methods of establishing
credentials, falling back to anon. It is possible for a methoc to
credentials, falling back to anon. It is possible for a method to
find credentials in the system that turn out not to be valid. Setting
this parameter to True will ensure that an actual operation is
attempted before deciding that credentials are valid.
Expand All @@ -273,7 +273,7 @@ class GCSFileSystem(fsspec.AbstractFileSystem):
def __init__(self, project=DEFAULT_PROJECT, access='full_control',
token=None, block_size=None, consistency='none',
cache_timeout=None, secure_serialize=True,
check_connection=True, requests_timeout=None, **kwargs):
check_connection=False, requests_timeout=None, **kwargs):
super().__init__(self, **kwargs)
pars = (project, access, token, block_size, consistency, cache_timeout)
if access not in self.scopes:
Expand Down

0 comments on commit be51512

Please sign in to comment.