diff --git a/src/middlewared/middlewared/plugins/cloud_sync.py b/src/middlewared/middlewared/plugins/cloud_sync.py index 4dd73797bbf6..5ca4616c8b87 100644 --- a/src/middlewared/middlewared/plugins/cloud_sync.py +++ b/src/middlewared/middlewared/plugins/cloud_sync.py @@ -75,9 +75,11 @@ async def __aenter__(self): config["pass"] = rclone_encrypt_password(config["pass"]) remote_path = None - extra_args = await self.provider.get_task_extra_args(self.cloud_sync) + extra_args = [] if "attributes" in self.cloud_sync: + extra_args = await self.provider.get_task_extra_args(self.cloud_sync) + config.update(dict(self.cloud_sync["attributes"], **await self.provider.get_task_extra(self.cloud_sync))) for k, v in list(config.items()): if v is undefined: