Skip to content

Commit

Permalink
Fix license ID field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Nov 19, 2019
1 parent 4288a56 commit 2fe6888
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metricbeat/module/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,9 @@ func (l *License) IsOneOf(candidateLicenses ...string) bool {
// particular it ensures that ms-since-epoch values are marshaled as longs
// and not floats in scientific notation as Elasticsearch does not like that.
func (l *License) ToMapStr() common.MapStr {

m := common.MapStr{
"status": l.Status,
"id": l.ID,
"uid": l.ID,
"type": l.Type,
"issue_date": l.IssueDate,
"issue_date_in_millis": l.IssueDateInMillis,
Expand Down

0 comments on commit 2fe6888

Please sign in to comment.