Skip to content

Commit

Permalink
Nitishm/bug/409/custom reverse workflow crash (#410)
Browse files Browse the repository at this point in the history
* Custom executor example

Signed-off-by: Nitish Malhotra <[email protected]>

* Instantiate CustomReverse executor with the image instance

Signed-off-by: Nitish Malhotra <[email protected]>
  • Loading branch information
nitishm authored Nov 12, 2021
1 parent 01a6094 commit 259e906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/executor/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type CustomForward struct {
}

func (exec CustomForward) Reverse() Executor {
return CustomReverse{}
return CustomReverse{exec.Image}
}

func (exec CustomForward) GetName() string {
Expand All @@ -36,7 +36,7 @@ type CustomReverse struct {
}

func (exec CustomReverse) Reverse() Executor {
return CustomForward{}
return CustomForward{exec.Image}
}

func (exec CustomReverse) GetName() string {
Expand Down

0 comments on commit 259e906

Please sign in to comment.