Commit b96af7d1 by Piotr Mitros

auth fix

parent 62bef12e
...@@ -103,10 +103,11 @@ def get_osfs(namespace): ...@@ -103,10 +103,11 @@ def get_osfs(namespace):
def get_s3fs(namespace): def get_s3fs(namespace):
''' Helper method to get_filesystem for a file system on S3 ''' ''' Helper method to get_filesystem for a file system on S3 '''
global key_id, key_secret
fullpath = namespace fullpath = namespace
if 'prefix' in djfs_settings: if 'prefix' in djfs_settings:
fullpath = os.path.join(djfs_settings['prefix'], fullpath) fullpath = os.path.join(djfs_settings['prefix'], fullpath)
s3fs = S3FS(djfs_settings['bucket'], fullpath) s3fs = S3FS(djfs_settings['bucket'], fullpath, aws_access_key=key_id, aws_secret_key=key_secret)
def get_s3_url(self, filename, timeout=60): def get_s3_url(self, filename, timeout=60):
global s3conn global s3conn
......
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