Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7238 from chaen/v8.1_FIX_sandboxAssign
Browse files Browse the repository at this point in the history
fix (DiracX Sandboxstore): assign output SB
  • Loading branch information
fstagni authored Oct 11, 2023
2 parents 37690cd + ff8b071 commit 3d7415f
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 3d7415f

Please sign in to comment.