Add comma-separated no-deploy values

This allows no-deploy values to be either specified as multiple --no-deploy invocations,
or a single invocation with comma-separated values.
This commit is contained in:
Xavier Landreville 2019-10-01 11:27:17 -04:00
parent cac41db0e1
commit 2f4a08c54d

View File

@ -132,7 +132,14 @@ func run(app *cli.Context, cfg *cmds.Server) error {
serverConfig.ControlConfig.DefaultLocalStoragePath = cfg.DefaultLocalStoragePath
}
noDeploys := make([]string, 0)
for _, noDeploy := range app.StringSlice("no-deploy") {
for _, splitNoDeploy := range strings.Split(noDeploy, ",") {
noDeploys = append(noDeploys, splitNoDeploy)
}
}
for _, noDeploy := range noDeploys {
if noDeploy == "servicelb" {
serverConfig.DisableServiceLB = true
continue