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:
parent
61e5d04a60
commit
7c61ce153f
1 changed files with 1 additions and 2 deletions
|
@ -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) }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue