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

fix (DiracX Sandboxstore): assign output SB #7238

Merged
merged 1 commit into from
Oct 11, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ def _getFromClient(self, fileId, token, fileSize, fileHelper=None, data=""):
return S_ERROR("Error uploading sandbox", repr(e))
else:
gLogger.debug("Sandbox already exists in storage backend", res.pfn)

assignTo = {key: [(res.pfn, assignTo[key])] for key in assignTo}
result = self.export_assignSandboxesToEntities(assignTo)
if not result["OK"]:
return result
return S_OK(res.pfn)

sbPath = self.__getSandboxPath(f"{aHash}.{extension}")
Expand Down
Loading