fix: ensure splitting only ever returns at most two parts
This commit is contained in:
@@ -125,7 +125,7 @@ func parseProcessTuples(processTuples []string) (FormationSlice, error) {
|
||||
formations := FormationSlice{}
|
||||
|
||||
for _, processTuple := range processTuples {
|
||||
s := strings.Split(processTuple, "=")
|
||||
s := strings.SplitN(processTuple, "=", 2)
|
||||
if len(s) == 1 {
|
||||
return formations, fmt.Errorf("Missing count for process type %s", processTuple)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user