Warning when updating function from poolmgr type to newdeploy executor type

When changing the function executor type from pool manager to new deployment - warning should not be given about ignore environment resources
This commit is contained in:
Vishal
2018-03-20 14:11:30 -07:00
committed by GitHub
parent 1447e6949d
commit 15bedfb688
+1 -1
View File
@@ -510,7 +510,7 @@ func fnUpdate(c *cli.Context) error {
default:
fatal("Executor type must be one of 'poolmgr' or 'newdeploy', defaults to 'poolmgr'")
}
if c.IsSet("mincpu") || c.IsSet("maxcpu") || c.IsSet("minmemory") || c.IsSet("maxmemory") &&
if (c.IsSet("mincpu") || c.IsSet("maxcpu") || c.IsSet("minmemory") || c.IsSet("maxmemory")) &&
fnExecutor == fission.ExecutorTypePoolmgr {
warn("CPU/Memory specified for function with pool manager executor will be ignored in favor of resources specified at environment")
}