From 259e906371227284a32656907c38ebad63a580ba Mon Sep 17 00:00:00 2001 From: Nitish Malhotra Date: Fri, 12 Nov 2021 11:38:53 -0800 Subject: [PATCH] Nitishm/bug/409/custom reverse workflow crash (#410) * Custom executor example Signed-off-by: Nitish Malhotra * Instantiate CustomReverse executor with the image instance Signed-off-by: Nitish Malhotra --- pkg/executor/custom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/executor/custom.go b/pkg/executor/custom.go index f56cea5e..ebabe27f 100644 --- a/pkg/executor/custom.go +++ b/pkg/executor/custom.go @@ -16,7 +16,7 @@ type CustomForward struct { } func (exec CustomForward) Reverse() Executor { - return CustomReverse{} + return CustomReverse{exec.Image} } func (exec CustomForward) GetName() string { @@ -36,7 +36,7 @@ type CustomReverse struct { } func (exec CustomReverse) Reverse() Executor { - return CustomForward{} + return CustomForward{exec.Image} } func (exec CustomReverse) GetName() string {