1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

clarify what strict means for the version test (#48979)

Reference the fact that we use the `StrictVersion` parser instead of `LooseVersion` from `distutils` in this case.
This commit is contained in:
Evgeni Golov 2018-11-26 22:55:25 +01:00 committed by Alicia Cozine
parent 61e5d04a60
commit 7c61ce153f

View file

@ -84,8 +84,7 @@ The ``version`` test accepts the following operators::
<, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne
This test also accepts a 3rd parameter, ``strict`` which defines if strict version parsing should
be used. The default is ``False``, but this setting as ``True`` uses more strict version parsing::
This test also accepts a 3rd parameter, ``strict`` which defines if strict version parsing as defined by ``distutils.version.StrictVersion`` should be used. The default is ``False`` (using ``distutils.version.LooseVersion``), ``True`` enables strict version parsing::
{{ sample_version_var is version('1.0', operator='lt', strict=True) }}