chore: always sort returned formations

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-02-11 21:12:25 -05:00
1 parent 0102d219f3
commit 31abd7e31e
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -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))