Fix failed to update specialization timeout (#1315)

This commit is contained in:
Ta-Ching Chen
2019-09-16 13:21:25 +08:00
committed by GitHub
parent 6d3d277cb9
commit 5d2d65f05c
+1 -1
View File
@@ -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")
}