Skip to content

Commit

Permalink
fix process sort failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ochinchina committed Mar 2, 2020
1 parent 1077501 commit 2283c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/process_sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func NewProcessSorter() *ProcessSorter {
func (p *ProcessSorter) initDepends(programConfigs []*Entry) {
//sort by dependsOn
for _, config := range programConfigs {
if config.IsProgram() && config.HasParameter("dependsOn") {
dependsOn := config.GetString("dependsOn", "")
if config.IsProgram() && config.HasParameter("depends_on") {
dependsOn := config.GetString("depends_on", "")
progName := config.GetProgramName()
for _, dependsOnProg := range strings.Split(dependsOn, ",") {
dependsOnProg = strings.TrimSpace(dependsOnProg)
Expand Down

0 comments on commit 2283c05

Please sign in to comment.