Problem with DOCUMENTATION.version_added value in sanity tests

Hello All,

For a couple of days I’ve been getting the following error in the Ansible sanity tests…

ERROR: plugins/modules/cassandra_autocompaction.py:0:0: module-invalid-version-added: DOCUMENTATION.version_added: invalid semantic version ‘2.8’ for dictionary value @ data[‘version_added’]. Got ‘community.cassandra:2.8’

The value for version_added in the files is as I expect. In the above case…

version_added: 2.8

The string community.cassandra is not in the file at all so I know there’s no parsing issues. Anyone have an idea what’s up here?

Cheers,

R

Hi,

For a couple of days I've been getting the following error in the
Ansible sanity tests...

ERROR: plugins/modules/cassandra_autocompaction.py:0:0:
module-invalid-version-added: DOCUMENTATION.version_added: invalid
semantic version '2.8' for dictionary value @ data['version_added'].
Got 'community.cassandra:2.8'

this is related to https://github.com/ansible/proposals/issues/178

Once all deprecation stuff is settled, there'll be an announcement in
https://github.com/ansible-collections/overview/issues/45

The value for version_added in the files is as I expect. In the above
case...

version_added: 2.8

That's a invalid version number for a collection. Collections must use
semantic versioning.

The string community.cassandra is not in the file at all so I know
there's no parsing issues. Anyone have an idea what's up here?

That's automagically added, so documentation can say which version a
version_added refers to (it could come from a doc fragment from another
collection, or from ansible-base).

Cheers,
Felix

Since a semantic version is a string I would assume that this
needs to be quoted, i.e.:

    version_added: "2.8"

Cheers
-Andi