community.general/lib/ansible/module_utils/facts
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
..
hardware Alias ansible_model to ansible_product_name for Darwin. Fixes #52233 (#52242) 2019-02-18 10:22:44 +00:00
network Add support of facts gathering WWNs on Solaris 10 and Solaris 11 OS (#52091) 2019-02-20 10:46:54 -05:00
other
system 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
virtual facts: set virtualization_role for KVM hosts (#50770) 2019-01-17 09:47:16 +01:00
__init__.py
ansible_collector.py
collector.py
compat.py
default_collectors.py Add network fact to obtain FC WWN initiator ports (#37043) 2019-01-31 21:59:38 +00:00
namespace.py
packages.py scan_packages: made adding package managers easier (#49079) 2019-03-06 12:29:51 -05:00
sysctl.py
timeout.py Make the timeout decorator raise an exception out of the function's scope (#49921) 2018-12-18 18:01:46 -08:00
utils.py made missing cli tools non fatal (#37194) 2018-04-10 17:23:29 -04:00