Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-132809 / 25.04 / Only call get_task_extra_args for cloud sync tasks (not for bucket … (by themylogin) #15096

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/middlewared/middlewared/plugins/cloud_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading