diff --git a/libbeat/scripts/generate_fields_docs.py b/libbeat/scripts/generate_fields_docs.py index 70791400cba..ecedb17d7b6 100644 --- a/libbeat/scripts/generate_fields_docs.py +++ b/libbeat/scripts/generate_fields_docs.py @@ -6,7 +6,7 @@ def document_fields(output, section, sections, path): - if "skipdocs" in section: + if "skipdocs" in section: return if "anchor" in section: output.write("[[exported-fields-{}]]\n".format(section["anchor"])) @@ -138,7 +138,7 @@ def fields_to_asciidoc(input, output, beat): if "anchor" not in section: section["anchor"] = section["key"] - if "skipdocs" not in section: + if "skipdocs" not in section: output.write("* <>\n".format(section["anchor"])) output.write("\n--\n")