diff --git a/plugins/ps/functions.go b/plugins/ps/functions.go index 2041b806a..d224e0810 100644 --- a/plugins/ps/functions.go +++ b/plugins/ps/functions.go @@ -407,6 +407,14 @@ func updateScalefile(appName string, scaleUpdates map[string]int) error { scale[processType] = count } + for processType := range validProcessTypes { + count, ok := scale[processType] + if !ok { + count = 0 + } + scale[processType] = count + } + content := []string{} for processType, count := range scale { content = append(content, fmt.Sprintf("%s=%d", processType, count))