Skip to content

Commit

Permalink
Fixed GetApps when inferring config
Browse files Browse the repository at this point in the history
  • Loading branch information
dkapanidis committed Jun 22, 2015
1 parent cd6b81f commit 9983a5e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions captain/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,15 @@ func NewConfig(options Options, forceOrder bool) Config {
func (c *config) GetApps() []App {
var cc = *c
var apps []App
for _,v := range *configOrder {
if val, ok := cc[v.Key.(string)]; ok {
apps = append(apps, val)
if (configOrder !=nil){
for _,v := range *configOrder {
if val, ok := cc[v.Key.(string)]; ok {
apps = append(apps, val)
}
}
} else {
for _,v := range *c {
apps = append(apps, v)
}
}

Expand Down

0 comments on commit 9983a5e

Please sign in to comment.