From 7ba954417d8846b1ecf20f3f3564ed6a1679e49a 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 12be5da8b..d70b2f14b 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") }