diff --git a/pkg/fission-cli/function.go b/pkg/fission-cli/function.go index 12be5da8..d70b2f14 100644 --- a/pkg/fission-cli/function.go +++ b/pkg/fission-cli/function.go @@ -602,7 +602,7 @@ func fnUpdate(c *cli.Context) error { function.Spec.InvokeStrategy = *strategy if c.IsSet("specializationtimeout") { - if c.String("executortype") != types.ExecutorTypeNewdeploy { + if strategy.ExecutionStrategy.ExecutorType != types.ExecutorTypeNewdeploy { log.Fatal("specializationtimeout flag is only applicable for newdeploy type of executor") }