Skip to content

Commit

Permalink
Use skipdocs instead of nofields to set condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton committed Apr 28, 2020
1 parent 267d9d7 commit 5ba99e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libbeat/scripts/generate_fields_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def document_fields(output, section, sections, path):
if "nofields" in section:
if "skipdocs" in section:
return
if "anchor" in section:
output.write("[[exported-fields-{}]]\n".format(section["anchor"]))
Expand Down Expand Up @@ -138,7 +138,7 @@ def fields_to_asciidoc(input, output, beat):
if "anchor" not in section:
section["anchor"] = section["key"]

if "nofields" not in section:
if "skipdocs" not in section:
output.write("* <<exported-fields-{}>>\n".format(section["anchor"]))
output.write("\n--\n")

Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/netflow/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
description: >
Module for receiving NetFlow and IPFIX flow records over UDP. The module
does not add fields beyond what the netflow input provides.
nofields:
skipdocs:
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/netflow/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ba99e4

Please sign in to comment.