Skip to content

Commit

Permalink
#fix : update patch.go to call PatchValue correctly (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-nurk authored Dec 28, 2024
1 parent fd7e7ec commit b66339b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/tasks/st/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func (T *Patch) Run(ctx *hofcontext.Context) (interface{}, error) {
v := ctx.Value

o := v.LookupPath(cue.ParsePath("orig"))
n := v.LookupPath(cue.ParsePath("patch"))
p := v.LookupPath(cue.ParsePath("patch"))

r, err := structural.PatchValue(o, n, nil)
r, err := structural.PatchValue(p, o, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b66339b

Please sign in to comment.