Skip to content

Commit

Permalink
fix: run as code
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed Jun 28, 2019
1 parent cc82995 commit 893a83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/api/workflow/workflow_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func ParseAndImport(ctx context.Context, db gorp.SqlExecutor, store cache.Store,
return nil, nil, errW
}

// Browse all node to find IDs
if err := IsValid(ctx, store, db, w, proj, u, LoadOptions{}); err != nil {
// If there is hook uuid load all pipelines for the workflow run
if err := IsValid(ctx, store, db, w, proj, u, LoadOptions{DeepPipeline: opts.HookUUID != ""}); err != nil {
return nil, nil, sdk.WrapError(err, "Workflow is not valid")
}

Expand Down

0 comments on commit 893a83a

Please sign in to comment.