Skip to content

Commit f3dd847

Browse files
committed
wip
1 parent 40b40a0 commit f3dd847

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/artifacts/artifact_server.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ func (a *ArtifactServer) getArtifactByManifest(w http.ResponseWriter, r *http.Re
304304

305305
uid := wf.UID
306306
requestPath := strings.SplitN(r.URL.Path, "/", 6)
307-
nodeId := requestPath[2]
308-
artifactName := requestPath[3]
307+
308+
nodeIdIndex := 2
309309
artifactNameIndex := 3
310310
fileNameFirstIndex := 4
311311

@@ -320,6 +320,9 @@ func (a *ArtifactServer) getArtifactByManifest(w http.ResponseWriter, r *http.Re
320320
return
321321
}
322322

323+
nodeId := requestPath[nodeIdIndex]
324+
artifactName := requestPath[artifactNameIndex]
325+
323326
log.WithFields(log.Fields{"uid": uid, "nodeId": nodeId, "artifactName": artifactName, "isInput": isInput}).Info("Download artifact by manifest")
324327

325328
art, driver, err := a.getArtifactAndDriver(ctx, nodeId, artifactName, isInput, wf, fileName)

0 commit comments

Comments
 (0)