Skip to content

Commit

Permalink
Fix segfault on service grouping due to unlabeled services not being …
Browse files Browse the repository at this point in the history
…accounted for
  • Loading branch information
vovimayhem committed Jul 21, 2017
1 parent 2acb1d0 commit fda9747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grouping/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func getServices(filename string) (map[string]Service, error) {
serviceMap := make(map[string]Service)

for serviceName, serviceRead := range cfg.Services {
if serviceRead.Labels == nil { continue }
service := Service{}
labelsType := reflect.TypeOf(serviceRead.Labels)
labelsKind := labelsType.Kind()
Expand Down

0 comments on commit fda9747

Please sign in to comment.