Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Oct 2022 14:08:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 264990] devel/py-Jinja2: Update to 3.1.2
Message-ID:  <bug-264990-21822-5em6xMSTGW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264990-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264990-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264990

--- Comment #4 from ruben@verweg.com ---
This also fixes using (complex) macros with Ansible as described in
https://github.com/ansible/ansible/issues/77272

With 3.0.1 Jinja2

$ ansible localhost -m debug -a "msg=3D'{% macro foo(v) %}{{ v }}{% endmacr=
o %}
{{ foo(1) }}'"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | FAILED! =3D> {
    "msg": "Unexpected templating type error occurred on ({% macro foo(v) %=
}{{
v }}{% endmacro %} {{ foo(1) }}): sequence item 0: expected str instance, i=
nt
found"
}
$ pkg info -I py39-{ansible,Jinja2}
py39-ansible-6.1.0             Radically simple IT automation
py39-Jinja2-3.0.1              Fast and easy to use stand-alone template en=
gine

With 3.1.2 Jinja2

$ ansible localhost -m debug -a "msg=3D'{% macro foo(v) %}{{ v }}{% endmacr=
o %}
{{ foo(1) }}'"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS =3D> {
    "msg": " 1"
}
$ pkg info -I py39-{ansible,Jinja2}
py39-ansible-6.1.0             Radically simple IT automation
py39-Jinja2-3.1.2              Fast and easy to use stand-alone template en=
gine

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264990-21822-5em6xMSTGW>