Skip to content

Commit

Permalink
fix (DiracX Sandboxstore): assign output SB
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Oct 11, 2023
1 parent 37690cd commit ff8b071
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 ff8b071

Please sign in to comment.