community.general/lib/ansible/module_utils/facts/system
Adrian Likins ec9769c82f
Facts distribution clear linux 31501 (#32453)
The search string used to look for Clear Linux
was changed in 45a9f96774 to
be more specific, but was too specific. Now finding
a substring match for 'Clear Linux' in /usr/lib/os-release
is enough to consider a match.

Since the details of the full name in os-release varies
('Clear Linux Software for Intel Architecture',
 'Clear Linux OS for Intel Architecture', etc) the
search string match was failing and would fall back to the
'first word in the release file' method resulting in
ansible_distribution='NAME="Clear'

Also add a meta fact indicating which search string
was matched.

Test case info from:
        https://github.com/ansible/ansible/issues/31501#issuecomment-340861535

Fixes #31501
2018-01-20 15:05:53 -05:00
..
__init__.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
apparmor.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
caps.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
chroot.py start of 'is chroot' fact 2017-09-18 16:16:41 -04:00
cmdline.py Cmdline fact uefi 23647 (#25446) 2017-06-08 16:03:29 -04:00
date_time.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
distribution.py Facts distribution clear linux 31501 (#32453) 2018-01-20 15:05:53 -05:00
dns.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
env.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
fips.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
local.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
lsb.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
pkg_mgr.py Add autodetection of atomic as a package manager 2017-12-11 21:20:19 -05:00
platform.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
python.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
selinux.py Make ansible_selinux facts a consistent type (#31065) 2017-10-05 09:19:08 -04:00
service_mgr.py Fix service_mgr fact collection (#32086) 2017-10-24 15:15:01 -04:00
ssh_pub_keys.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
user.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00