community.general/lib/ansible
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 Add more info related to galaxy sub commands (#41085) 2018-06-15 12:12:13 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config Fix some typos in config/base.yml (#41363) 2018-06-14 23:53:41 -04:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor no_log even when task_result doesn't provide key 2018-06-12 10:25:30 -07:00
galaxy Update APB templates (#41559) 2018-06-14 17:05:30 -04:00
inventory Introduce inventory.any_unparsed_is_failed configuration setting (#41171) 2018-06-06 09:28:58 +05:30
module_utils facts: suse: Fix major version detection for SUSE (#41416) 2018-06-18 09:53:50 -04:00
modules Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 2018-06-18 08:22:50 -04:00
parsing Fix wrong python keyword (followup to #36357) (#41067) 2018-06-07 19:48:07 +05:30
playbook Ensure we raise the exception caught _post_validate_environment->_parse_env_kv. Fixes #41322 (#41411) 2018-06-13 12:22:07 -04:00
plugins Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 2018-06-18 08:22:50 -04:00
template When using ANSIBLE_JINJA2_NATIVE bypass our None filtering in _finalze (#41408) 2018-06-12 08:46:23 -05:00
utils Prefer readthedocs.io instead of readthedocs.org for doc links (#41537) 2018-06-18 08:22:50 -04:00
vars minimize loading files/plugins 2018-04-10 17:22:31 -04:00
__init__.py
constants.py adds ansible-doc JSON plugin data dump 2018-06-04 17:20:33 -07:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00