Commit 2f4a08c5 authored by Xavier Landreville's avatar Xavier Landreville

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.
parent cac41db0
...@@ -132,7 +132,14 @@ func run(app *cli.Context, cfg *cmds.Server) error { ...@@ -132,7 +132,14 @@ func run(app *cli.Context, cfg *cmds.Server) error {
serverConfig.ControlConfig.DefaultLocalStoragePath = cfg.DefaultLocalStoragePath serverConfig.ControlConfig.DefaultLocalStoragePath = cfg.DefaultLocalStoragePath
} }
noDeploys := make([]string, 0)
for _, noDeploy := range app.StringSlice("no-deploy") { for _, noDeploy := range app.StringSlice("no-deploy") {
for _, splitNoDeploy := range strings.Split(noDeploy, ",") {
noDeploys = append(noDeploys, splitNoDeploy)
}
}
for _, noDeploy := range noDeploys {
if noDeploy == "servicelb" { if noDeploy == "servicelb" {
serverConfig.DisableServiceLB = true serverConfig.DisableServiceLB = true
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment