Skip to content

Commit

Permalink
Fixing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Apr 3, 2019
1 parent 5943f2f commit c64a59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/monitoring/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func getReporterConfig(
}{}
rc.Unpack(&hosts)

if settings.Format == FormatBulk && len(hosts.Hosts) > 0 {
if settings.Format == FormatXPackMonitoringBulk && len(hosts.Hosts) > 0 {
pathMonHosts := rc.PathOf("hosts")
pathOutHost := outCfg.PathOf("hosts")
err := fmt.Errorf("'%v' and '%v' are configured", pathMonHosts, pathOutHost)
Expand Down

0 comments on commit c64a59b

Please sign in to comment.