diff --git a/src/middlewared/middlewared/rclone/remote/s3.py b/src/middlewared/middlewared/rclone/remote/s3.py index e73559048193d..6c260af22bb3d 100644 --- a/src/middlewared/middlewared/rclone/remote/s3.py +++ b/src/middlewared/middlewared/rclone/remote/s3.py @@ -54,7 +54,7 @@ async def validate_task_basic(self, task, credentials, verrors): task["attributes"]["region"] = response["LocationConstraint"] or "us-east-1" async def get_credentials_extra(self, credentials): - result = {} + result = {"provider": "Other"} if (credentials["provider"].get("endpoint") or "").rstrip("/").endswith(".scw.cloud"): if credentials["provider"].get("max_upload_parts", 10000) == 10000: @@ -68,7 +68,6 @@ async def get_task_extra(self, task): server_side_encryption=task["attributes"].get("encryption") or "", skip_region=undefined, signatures_v2=undefined, - provider="Other", ) if not task["credentials"]["provider"].get("skip_region", False): diff --git a/src/middlewared/middlewared/rclone/remote/storjix.py b/src/middlewared/middlewared/rclone/remote/storjix.py index 909256dfc6524..580e6ded601c2 100644 --- a/src/middlewared/middlewared/rclone/remote/storjix.py +++ b/src/middlewared/middlewared/rclone/remote/storjix.py @@ -79,7 +79,7 @@ def list_buckets_sync(): return await self.middleware.run_in_thread(list_buckets_sync) async def get_credentials_extra(self, credentials): - return {"endpoint": "https://gateway.storjshare.io"} + return {"endpoint": "https://gateway.storjshare.io", "provider": "Other"} async def get_task_extra(self, task): # Storj recommended these settings @@ -87,7 +87,6 @@ async def get_task_extra(self, task): "chunk_size": "64M", "disable_http2": "true", "upload_cutoff": "64M", - "provider": "Other", } def get_restic_config(self, task):