From 5d2d65f05cb03764508bd1ba9385660cf15037fe Mon Sep 17 00:00:00 2001 From: Ta-Ching Chen Date: Mon, 16 Sep 2019 13:21:25 +0800 Subject: [PATCH] Fix failed to update specialization timeout (#1315) --- pkg/fission-cli/function.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }