fix: do not output extra newlines

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 15:31:59 -04:00
parent 550a0bd07b
commit 33bf6f59b3

View File

@@ -273,9 +273,12 @@ func TriggerPsCurrentScale(appName string) error {
} }
sort.Sort(formations) sort.Sort(formations)
lines := []string{}
for _, formation := range formations { for _, formation := range formations {
fmt.Printf("%s=%d\n", formation.ProcessType, formation.Quantity) lines = append(lines, fmt.Sprintf("%s=%d", formation.ProcessType, formation.Quantity))
} }
fmt.Print(strings.Join(lines, "\n"))
return nil return nil
} }