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 Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
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 Relicense fact code I wrote to 2 clause BSD 2017-10-19 10:38:39 -07:00
ansible_collector.py Fix fact deps when 'filter=ansible_fact' is used. (#33441) 2018-01-20 15:07:27 -05:00
collector.py Fact collector ordering deps (#31362) 2018-01-22 18:23:40 -05:00
compat.py Add fact to obtain iSCSI initiator IQN 2018-03-13 17:39:53 -07:00
default_collectors.py Add network fact to obtain FC WWN initiator ports (#37043) 2019-01-31 21:59:38 +00:00
namespace.py Relicense fact code I wrote to 2 clause BSD 2017-10-19 10:38:39 -07:00
packages.py scan_packages: made adding package managers easier (#49079) 2019-03-06 12:29:51 -05:00
sysctl.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
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