Files
community.general/lib/ansible/module_utils
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
..
2017-08-07 19:46:06 -07:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2018-06-08 13:04:37 -07:00
2017-09-12 00:11:13 -07:00
2017-06-02 12:14:11 +01:00
2016-02-08 19:10:04 +01:00
2017-11-21 13:41:27 -08:00
2017-06-02 12:14:11 +01:00
2018-05-23 09:29:37 -07:00
2017-11-21 10:03:34 -08:00
2017-09-13 01:53:08 -07:00
2018-05-17 17:32:27 -05:00
2017-06-02 12:14:11 +01:00
2018-03-08 16:46:06 +01:00