You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/module_utils
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.
6 years ago
..
aws
basic Use distro.id() instead of distro.name() (#52199) 6 years ago
cloud
common Use distro.id() instead of distro.name() (#52199) 6 years ago
docker
ec2
facts Ensure Clear Linux parsing is actually parsing a Clear Linux host and all others fall back to NA (#53298) 6 years ago
gcp
json_utils
net_tools
network NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981) 6 years ago
parsing
urls uri/win_uri: Make method a free text field (#49719) 6 years ago
xenserver Fix a bug that caused exception on XenServer 7.1 with Cummulative Update (#52303) 6 years ago
__init__.py
conftest.py
test_acme.py
test_database.py
test_distribution_version.py
test_distro.py
test_known_hosts.py
test_postgresql.py
test_text.py
test_utm_utils.py
test_vmware.py