Merge pull request #851 from MagnaXSoftware/switch-string-slice

Add comma-separated no-deploy values
pull/908/head
Erik Wilson 2019-10-16 16:00:46 -07:00 committed by GitHub
commit 9e14d3e470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -134,7 +134,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