Commit 96e19223 by Piotr Mitros

Fix for role-based authentication

parent 73cac8d1
...@@ -104,12 +104,6 @@ class S3FS(FS): ...@@ -104,12 +104,6 @@ class S3FS(FS):
prefix = prefix + separator prefix = prefix + separator
if isinstance(prefix,unicode): if isinstance(prefix,unicode):
prefix = prefix.encode("utf8") prefix = prefix.encode("utf8")
if aws_access_key is None:
if "AWS_ACCESS_KEY_ID" not in os.environ:
raise CreateFailedError("AWS_ACCESS_KEY_ID not set")
if aws_secret_key is None:
if "AWS_SECRET_ACCESS_KEY" not in os.environ:
raise CreateFailedError("AWS_SECRET_ACCESS_KEY not set")
self._prefix = prefix self._prefix = prefix
self._tlocal = thread_local() self._tlocal = thread_local()
super(S3FS, self).__init__(thread_synchronize=thread_synchronize) super(S3FS, self).__init__(thread_synchronize=thread_synchronize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment