Skip to content

Commit

Permalink
Merge pull request #76 from lisuml/Jinja2_syntax_typo
Browse files Browse the repository at this point in the history
Corrected Jinja2 syntax
  • Loading branch information
geerlingguy committed Jan 25, 2024
2 parents 162794f + 7d34eb9 commit e0a14bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/filebeat.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ output:

# Optional auth via API Key or username/password.
# The options are mutually exclusive and api_key takes the precedence.
{%- if 'api_key' in filebeat_output_elasticsearch_auth +%}
{%- if 'api_key' in filebeat_output_elasticsearch_auth -%}
api_key: "{{ filebeat_output_elasticsearch_auth.api_key }}"
{%- elif 'username' in filebeat_output_elasticsearch_auth +%}
{%- elif 'username' in filebeat_output_elasticsearch_auth -%}
username: "{{ filebeat_output_elasticsearch_auth.username }}"
password: "{{ filebeat_output_elasticsearch_auth.password }}"
{%- endif %}
Expand Down

0 comments on commit e0a14bf

Please sign in to comment.