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/lib/ansible
Adrian Likins 235d139e5d Fixes for facts distribution.py (#31110)
'distribution' facts were being set after checking
the existence of the dist file, and then being set
again with more detail after they were succesfully parsed.

But if the dist file was not succesfully parsed and
matched the required names, the loop continues
without resetting the earlier set facts. This is
how 'Mandriva' would end up being the 'distribution'
file for unrelated cases (it would find /etc/lsb-release,
set distro to 'Mandriva', then fail to parse/match and
continue the loop. If no other checks worked, 'Mandriva'
would stick).

* parse_dist_file_NA should check 'name' not distro for NA

parse_distribution_file_NA was checking the incoming
'distribution' fact to be 'NA', but the fact itself can
be specific at that point ('KDE Neon', for ex) but the
check is really if the 'name' it was passed is NA.

* for matches on OS_RELEASE_ALIAS (ie, 'Archlinux') do
not continue if the dist file content doesn't match. Previously
it had to because of the 'Mandriva' bug mentioned above.

This is a more general fix for #30693 than #30723

Fixes  #30693
Related to #30600
2017-10-03 14:01:40 -04:00
..
cli Handle vault decrypt --output=- (#31066) 2017-10-03 12:02:16 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config remove unused ssh pipelining setters 2017-10-03 09:22:01 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor fixed winrm to use proper task vars (#31072) 2017-09-29 11:12:56 +10:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory set _hosts on access if None (#31111) 2017-10-03 08:59:05 -07:00
module_utils Fixes for facts distribution.py (#31110) 2017-10-03 14:01:40 -04:00
modules Fixes #30769 - nxos_vtp_version errors out on N1 images. (#30770) 2017-10-03 17:24:14 +05:30
parsing Use vault_id when encrypted via vault-edit (#30772) 2017-09-26 12:28:31 -04:00
playbook avoid include_Xs conflating vars with options (#30954) 2017-09-27 19:53:10 -04:00
plugins Fix flush_cache on redis cache 2017-10-03 12:54:26 -04:00
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils ansible_tower: fix broken import, reuse tower_argument_spec and documentation fragment (#29115) 2017-10-02 16:21:24 -04:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fix backwards compatibility of constants.get_config 2017-10-03 09:19:04 -04:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00