diff --git a/plugins/ps/functions.go b/plugins/ps/functions.go index f12ab5e36..ca7b52e49 100644 --- a/plugins/ps/functions.go +++ b/plugins/ps/functions.go @@ -212,6 +212,7 @@ func getFormations(appName string) (FormationSlice, error) { formations = append(formations, formation) } + sort.Sort(formations) return formations, nil } @@ -236,7 +237,6 @@ func scaleReport(appName string) error { content = append(content, "proctype=qty", "--------=---") } - sort.Sort(formations) for _, formation := range formations { content = append(content, fmt.Sprintf("%s=%d", formation.ProcessType, formation.Quantity)) } diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index 38d91ec1a..f7aaab99f 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -6,7 +6,6 @@ import ( "os" "path" "path/filepath" - "sort" "strconv" "strings" @@ -298,7 +297,6 @@ func TriggerPsCurrentScale(appName string) error { return err } - sort.Sort(formations) lines := []string{} for _, formation := range formations { lines = append(lines, fmt.Sprintf("%s=%d", formation.ProcessType, formation.Quantity))