refactor: allow specifying clearExisting when calling ps-set-scale

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 17:53:57 -04:00
parent 7502cbd13d
commit a7593db0c3
4 changed files with 8 additions and 5 deletions

View File

@@ -496,7 +496,9 @@ func setScale(appName string, image string) error {
return err
}
args := []string{appName, "true"}
skipDeploy := true
clearExisting := false
args := []string{appName, strconv.FormatBool(skipDeploy), strconv.FormatBool(clearExisting)}
for processType, formation := range appJSON.Formation {
args = append(args, fmt.Sprintf("%s=%d", processType, formation.Quantity))
}