1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units
Markos Chandras 1737b7be3e facts: suse: Fix major version detection for SUSE (#41416)
When parsing the distribution files such as /etc/os-release, we extract
the full distribution version but not the major version. As such, the
ansible_distribution_major_version ends up being 'NA' whereas the
ansible_distribution_version contains the full version.

Before this patch we get this on openSUSE Leap 15

ansible -o localhost -m setup -a filter=ansible_distribution_major_version
localhost | SUCCESS => {"ansible_facts": {"ansible_distribution_major_version": "NA"}, "changed": false}

After this patch we get this

ansible -o localhost -m setup -a filter=ansible_distribution_major_version
localhost | SUCCESS => {"ansible_facts": {"ansible_distribution_major_version": "15"}, "changed": false}

This also fixes the Tumbleweed distribution test to report a proper
major version and also adds a test for openSUSE Leap 15.0 to avoid
potential future regressions.

Fixes: #41410
2018-06-18 09:53:50 -04:00
..
cli
config
contrib
errors
executor module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
inventory_test_data/group_vars
mock avoid caching invetnory sources in loader (#38242) 2018-04-10 22:15:52 -04:00
module_utils facts: suse: Fix major version detection for SUSE (#41416) 2018-06-18 09:53:50 -04:00
modules Fixes usage of popen in bigip iapplx package (#41612) 2018-06-15 15:41:57 -07:00
parsing fix decrypted vault utf8 values (#37539) 2018-05-24 23:22:46 -04:00
playbook Fix wrong python keyword (followup to #36357) (#41067) 2018-06-07 19:48:07 +05:30
plugins skip winrm unit tests if winrm is not installed (#41596) 2018-06-15 10:23:15 -07:00
template Remove duplicated "instead" word (#38800) 2018-04-16 09:23:43 -04:00
utils
vars
__init__.py
ansible.cfg
conftest.py
test_constants.py