Skip to content

Commit

Permalink
fix: Support artifact ref from tmpl in UI. Fixes #7587 (#7591)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec committed Jan 27, 2022
1 parent e7a628c commit 7a3b766
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/artifacts/artifact_server.go
Expand Up @@ -154,11 +154,7 @@ func (a *ArtifactServer) returnArtifact(ctx context.Context, w http.ResponseWrit
return fmt.Errorf("artifact not found")
}

ref, err := a.artifactRepositories.Resolve(ctx, wf.Spec.ArtifactRepositoryRef, wf.Namespace)
if err != nil {
return err
}
ar, err := a.artifactRepositories.Get(ctx, ref)
ar, err := a.artifactRepositories.Get(ctx, wf.Status.ArtifactRepositoryRef)
if err != nil {
return err
}
Expand Down

0 comments on commit 7a3b766

Please sign in to comment.