Skip to content

Conversation

@KSerrania
Copy link
Contributor

@KSerrania KSerrania commented Dec 13, 2019

What does this PR do?

Replaces the first argument of the indent filter with the older indentfirst.
Fixes #229.

Motivation

The first option is only supported by jinja 2.10+ which is not present on older systems (CentOS 7, Debian 8, etc.).
Using the equivalent option indentfirst (see here) will work with all currently existing jinja 2 versions (as of this comment, up to 2.10).

@KSerrania KSerrania merged commit a9b80e7 into master Dec 23, 2019
@KSerrania KSerrania deleted the kserrania/system-probe-fix-indent-filter branch December 23, 2019 13:50
KSerrania added a commit that referenced this pull request Dec 23, 2019
Replaces the first argument of the indent filter with the older indentfirst.
The first option is only supported by jinja 2.10+ which is not present on older systems (CentOS 7, Debian 8, etc.).
KSerrania added a commit that referenced this pull request Dec 23, 2019
Replaces the first argument of the indent filter with the older indentfirst.
The first option is only supported by jinja 2.10+ which is not present on older systems (CentOS 7, Debian 8, etc.).
@bsolomon1124
Copy link

@KSerrania a heads up that indentfirst is removed in Jinja 3.

https://github.com/pallets/jinja/blob/2.11.x/src/jinja2/filters.py#L633

tasktop-teho added a commit to tasktop-teho/ansible-datadog that referenced this pull request May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TASK [Datadog.datadog : Create system-probe configuration file] Failure

4 participants