community.general/lib/ansible
Sam Doran 1d91e03119
Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298)
Fixes a bug where parse_distribution_file_ClearLinux() was called on CoreOS (and probably many other distros) and it returned True since it successfully parses the distribution file. Since this file exists on many Linux distributions and they are a very similar format, add an additional check to make sure it is Clear Linux.

Change the order in which distribution files are processed so NA is last. This prevents a match on CoreOS hosts since they also have /etc/os-release and the called matching function for NA is very general and will match CoreOS.

* Add changelog

* Add unit tests

Only add tests for Clear Linux parsing since that was the cause of this issue.
2019-03-08 10:40:49 -05:00
..
cli write to file option for ansible-inventory (#53183) 2019-03-05 16:07:53 -05:00
compat
config Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
errors
executor interpreter discovery message tweaks (#53155) 2019-02-28 17:53:55 -08:00
galaxy Update galaxy cli metadata file templates (#51398) 2019-02-22 00:54:02 -05:00
inventory Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00
module_utils Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 2019-03-08 10:40:49 -05:00
modules Make "absent" runnable with specifying NVR in DNF module. (#53206) 2019-03-08 09:48:18 -05:00
parsing
playbook handle non strings in requirements version for ansible-galaxy (#52109) 2019-02-20 14:28:04 -05:00
plugins Fixes typo of dicionaries to dictionaries (#53505) 2019-03-08 07:28:39 +01:00
template
utils Don't fail if ConnectionError has no code (#53455) 2019-03-07 10:04:08 -05:00
vars Python interpreter discovery (#50163) 2019-02-27 23:52:02 -08:00
__init__.py
constants.py Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
context.py
release.py