Unverified Commit 9e14d3e4 authored by Erik Wilson's avatar Erik Wilson Committed by GitHub

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

Add comma-separated no-deploy values
parents 756a7f10 2f4a08c5
...@@ -134,7 +134,14 @@ func run(app *cli.Context, cfg *cmds.Server) error { ...@@ -134,7 +134,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