Skip to content

Commit

Permalink
Merge pull request #80 from sc68cal/fix_whitespace
Browse files Browse the repository at this point in the history
Fix jinja whitespace issue
  • Loading branch information
geerlingguy committed Apr 11, 2024
2 parents e0a14bf + 93d39cb commit cd82ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/filebeat.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ 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 %}
{% endif %}

# Number of workers per Elasticsearch host.
#worker: 1
Expand Down

0 comments on commit cd82ed4

Please sign in to comment.