Skip to content

Commit

Permalink
Remove unnecessary API call in pipeline runner
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Oct 21, 2024
1 parent 571076d commit df97a5b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bundle/run/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) (output.RunOutp
// Include resource key in logger.
ctx = log.NewContext(ctx, log.GetLogger(ctx).With("resource", r.Key()))
w := r.bundle.WorkspaceClient()
_, err := w.Pipelines.GetByPipelineId(ctx, pipelineID)
if err != nil {
log.Warnf(ctx, "Cannot get pipeline: %s", err)
return nil, err
}

req, err := opts.Pipeline.toPayload(r.pipeline, pipelineID)
if err != nil {
Expand Down

0 comments on commit df97a5b

Please sign in to comment.