# Problem with DOCUMENTATION.version\_added value in sanity tests

**URL:** <https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075>\
**Category:** Ansible Developer\
**Created:** [June 2, 2020, 5:17pm UTC](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075 "2020-06-02T17:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhysmeister](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rhysmeister/32/10599_2.png) [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Post date:** [June 2, 2020, 5:17pm UTC](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075/1 "2020-06-02T17:17:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [June 2, 2020, 5:25pm UTC](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075/2 "2020-06-02T17:25:51Z")

</div>

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](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](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

---

<div class="post-metadata">

**Author:** ![Andreas\_Harpfer](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Andreas\_Harpfer](https://forum.ansible.com/u/Andreas_Harpfer)\
**Post date:** [June 2, 2020, 5:49pm UTC](https://forum.ansible.com/t/problem-with-documentation-version-added-value-in-sanity-tests/33075/3 "2020-06-02T17:49:27Z")

</div>

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

&nbsp;&nbsp;&nbsp;&nbsp;version\_added: "2.8"

Cheers  
-Andi
