diff --git a/lib/galaxy/dependencies/__init__.py b/lib/galaxy/dependencies/__init__.py index 1530b48fb3cd..aca4c3fd8e84 100644 --- a/lib/galaxy/dependencies/__init__.py +++ b/lib/galaxy/dependencies/__init__.py @@ -265,7 +265,7 @@ def check_fs_gcsfs(self): def check_google_cloud_storage(self): return "googlecloudstorage" in self.file_sources - def check_fs_onedatafs(self): + def check_fs_onedatarestfs(self): return "onedata" in self.file_sources def check_fs_basespace(self): diff --git a/lib/galaxy/files/sources/onedata.py b/lib/galaxy/files/sources/onedata.py index ee20825703dc..986ca0feec4e 100644 --- a/lib/galaxy/files/sources/onedata.py +++ b/lib/galaxy/files/sources/onedata.py @@ -4,13 +4,14 @@ OnedataRESTFS = None from typing import Optional + from . import FilesSourceOptions from ._pyfilesystem2 import PyFilesystem2FilesSource def remove_prefix(prefix, string): if string.startswith(prefix): - string = string[len(prefix):] + string = string[len(prefix) :] return string