From 625ae9700f3c98794409eb130a44d6fa4e82a591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Wed, 17 Jan 2024 14:18:08 +0100 Subject: [PATCH] bucket needs special handling --- lib/galaxy/files/sources/s3fs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/files/sources/s3fs.py b/lib/galaxy/files/sources/s3fs.py index 4b1ba38965f..3939d2fab58 100644 --- a/lib/galaxy/files/sources/s3fs.py +++ b/lib/galaxy/files/sources/s3fs.py @@ -67,8 +67,9 @@ class S3FsFilesSource(BaseFilesSource): return list(map(to_dict, res)) def _realize_to(self, source_path, native_path, user_context=None, opts: Optional[FilesSourceOptions] = None): + fs = self._open_fs(user_context=user_context, opts=opts) bucket_path = self._bucket_path(source_path) - self._open_fs(user_context=user_context, opts=opts).download(bucket_path, native_path) + fs.download(bucket_path, native_path) def _write_from(self, target_path, native_path, user_context=None, opts: Optional[FilesSourceOptions] = None): bucket_path = self._bucket_path(target_path)