Skip to content

Commit

Permalink
Fix asset registry slice generation (#9986)
Browse files Browse the repository at this point in the history
As found in https://github.com/elastic/beats/pull/9703/files#r246286729 the wrong variable was used for the length check.
  • Loading branch information
ruflin authored Jan 10, 2019
1 parent 5a5da1b commit 0e1540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/asset/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func GetFields(beat string) ([]byte, error) {

// Get all priorities and sort them
beatRegistry := FieldsRegistry[beat]
priorities := make([]int, 0, len(FieldsRegistry))
priorities := make([]int, 0, len(beatRegistry))
for p := range beatRegistry {
priorities = append(priorities, p)
}
Expand Down

0 comments on commit 0e1540a

Please sign in to comment.