Skip to content

Commit

Permalink
Merge pull request #2995 from tsg/fix_mongo_password_option
Browse files Browse the repository at this point in the history
Fixed the password option in Mongodb
  • Loading branch information
ruflin authored Nov 14, 2016
2 parents 22e0c38 + 64854e7 commit 8f5d35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/mongodb/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
config := struct {
Hosts []string `config:"hosts" validate:"nonzero,required"`
Username string `config:"username"`
Password string `config:"username"`
Password string `config:"password"`
}{}

if err := base.Module().UnpackConfig(&config); err != nil {
Expand Down

0 comments on commit 8f5d35e

Please sign in to comment.