Skip to content

Commit

Permalink
Adding comments for the change introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Sep 5, 2023
1 parent 1daafec commit 1c5541e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/metricbeat/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func defaultProcessors() []mapstr.M {

// Setting environmental variable NETINFO:false in Elastic Agent pod will disable the netinfo.enabled option of add_host_metadata processor.
// This will result to events not being enhanced with host.ip and host.mac
//Related to https://github.com/elastic/integrations/issues/6674
// Related to https://github.com/elastic/integrations/issues/6674
valueNETINFO, status := os.LookupEnv("NETINFO")

if valueNETINFO == "false" && status == true {

Check failure on line 81 in x-pack/metricbeat/cmd/root.go

View workflow job for this annotation

GitHub Actions / lint (linux)

S1002: should omit comparison to bool constant, can be simplified to `status` (gosimple)
Expand Down

0 comments on commit 1c5541e

Please sign in to comment.