Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace index lookup with first filter. #9

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/flags
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#jinja2: trim_blocks: "false", lstrip_blocks: "true"
{% for collector in node_exporter_enabled_collectors %}
{% if not collector is mapping %}

Check failure on line 3 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
--collector.{{ collector }} \
{% else %}

Check failure on line 5 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
{% set name, options = (collector.items()|list)[0] %}
{% set name, options = collector.items() | list | first %}

Check failure on line 6 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 9, got 1 (S3)
--collector.{{ name }} \
{% for k,v in options|dictsort %}

Check failure on line 8 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

The operator | needs to be enclosed by a single space on each side (S2)

Check failure on line 8 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 9, got 1 (S3)
--collector.{{ name }}.{{ k }}={{ v | quote }} \
{% endfor %}

Check failure on line 10 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 9, got 1 (S3)
{% endif %}

Check failure on line 11 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
{% endfor %}
{% for collector in node_exporter_disabled_collectors %}
--no-collector.{{ collector }} \
Expand All @@ -17,11 +17,11 @@
--collector.textfile.directory="{{ node_exporter_textfile_directory }}" \
{% endif %}
{% for k,v in node_exporter_extra_flags | dictsort %}
{% if v == "" %}

Check failure on line 20 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
--{{ k }} \
{% else %}

Check failure on line 22 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
--{{ k }}={{ v | quote }} \
{% endif %}

Check failure on line 24 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
{% endfor %}
--log.level="{{ node_exporter_log_level }}" \
{% for node_exporter_listen_address in node_exporter_listen_addresses %}
Expand Down