community.general/lib/ansible/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.
2019-03-08 10:40:49 -05:00
..
aws Fix incorrect use of `is` for comparisons. 2019-02-12 16:33:13 -08:00
common Use distro.id() instead of distro.name() (#52199) 2019-03-07 13:25:59 -05:00
compat Have update-bundled check for updates to all bundled code 2019-02-06 13:59:55 -08:00
csharp Ansible.Basic - Support a delegate type for option elements key (#52951) 2019-02-26 08:14:10 +10:00
distro Changes to bundled distro to be Python-2.6 compatible 2018-12-17 11:01:01 -08:00
docker improve docker_* test speed (#53417) 2019-03-06 14:01:00 -08:00
facts 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
k8s Allow user to specify a custom condition when waiting (#52185) 2019-03-06 12:41:17 +00:00
net_tools Fixes issue where uppercase named A_Record delete was getting skipped (#51539) 2019-01-31 21:02:46 +05:30
network Module nxos logging fixes (#52883) 2019-03-06 13:55:03 -05:00
parsing
powershell Windows: Add backup parameter to modules (#50033) 2019-02-25 11:37:25 +10:00
remote_management intersight_rest_api module and integration tests. (#52430) 2019-02-19 16:40:40 +01:00
six Have update-bundled check for updates to all bundled code 2019-02-06 13:59:55 -08:00
storage Ansible module to enable the user to provision CPGs on HPE StoreServ 3PAR device (#39656) 2019-02-26 14:09:03 +00:00
__init__.py
_text.py
acme.py acme_account: improve account deactivation idempotency (#53234) 2019-03-05 16:08:01 +00:00
alicloud_ecs.py Add new module ali_instance (#36898) 2018-10-23 13:02:21 -05:00
ansible_release.py
ansible_tower.py tower modules: check that 'verify_ssl' defined in ~/.tower_cli.cfg isn't ignored (#50687) 2019-02-13 10:26:43 +00:00
api.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
azure_rm_common.py Updating azure-mgmt-resource package version to 2.1.0 (#53437) 2019-03-07 14:55:28 +08:00
azure_rm_common_rest.py support lro in azure_rm_resource (#49919) 2018-12-17 13:21:25 +08:00
basic.py Python 2: accept both long and int for type=int (module options) (#53289) 2019-03-05 09:39:03 -05:00
cloud.py
cloudscale.py cloudscale_server: refactor to implement update (#52683) 2019-03-05 10:40:16 +01:00
cloudstack.py cloudstack: ensure return api_timeout is int (#52191) 2019-02-13 23:11:22 +01:00
connection.py Allow AnsibleVaultEncryptedUnicode to pass through exec_jsonrpc (#48306) 2018-12-21 11:15:18 -05:00
crypto.py Relative time support for crypto modules (openssl_certificate) (#50570) 2019-01-22 20:41:02 +00:00
database.py
digital_ocean.py
dimensiondata.py Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
ec2.py AWS: handle boto3 credential file parsing error (#53098) 2019-02-28 08:41:59 -06:00
exoscale.py
f5_utils.py
firewalld.py
gcdns.py
gce.py
gcp.py removing libcloud secrets support for legacy gcp modules (#44932) 2018-08-31 08:28:32 -04:00
gcp_utils.py Fix gcp utils dict replace (#51426) 2019-01-29 15:52:31 -05:00
gitlab.py copyright: edit deprecated email (#51912) 2019-02-08 01:48:25 +01:00
hcloud.py Add hcloud server module (#53062) 2019-03-05 07:30:24 +01:00
heroku.py Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
ibm_sa_utils.py Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
infinibox.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
influxdb.py Sanity fixes to parameter types (#52325) 2019-02-15 16:58:58 +01:00
ipa.py identity: Issue warning if GSSAPI parameters can't be used (#52721) 2019-02-22 08:39:42 +00:00
ismount.py
json_utils.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
keycloak.py
known_hosts.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
kubevirt.py kubevirt: Add datavolumes support (#52998) 2019-03-05 17:13:40 +05:30
ldap.py doc: fix maintainer's name (#44452) 2018-08-21 16:32:37 +02:00
linode.py Add new linode_v4 module. (#46151) 2018-11-16 12:39:05 +00:00
lxd.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
manageiq.py Use common functions for handling import errors (#51851) 2019-02-07 16:51:16 -05:00
memset.py New facts module: Memset Memstore (#42387) 2018-10-29 12:27:03 +00:00
mysql.py Fix for "AttributeError: 'module' object has no attribute 'cursors'" (#49191) (#53445) 2019-03-08 08:21:56 +00:00
netapp.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
netapp_elementsw_module.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
netapp_module.py New Options for Autosupport (#50773) 2019-01-23 18:18:07 +00:00
oneandone.py
oneview.py Use common functions for handling import errors (#51851) 2019-02-07 16:51:16 -05:00
online.py Add an Online servers fact 2018-09-24 21:03:50 +02:00
opennebula.py one_host environment variables, Fixes #44163 (#44568) 2018-08-27 10:55:04 -04:00
openstack.py openstack: fix parameter handling when cloud provided as dict (#42899) 2018-12-10 11:41:22 +00:00
ovirt.py Ovirt vm state running wait false (#51024) 2019-02-04 14:52:37 +00:00
postgres.py
pure.py Add user_agent into FlashBlade API calls (#46221) 2018-10-29 11:28:00 +00:00
pycompat24.py Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
rabbitmq.py rabbitmq: Clean up parameter types (#52525) 2019-02-19 12:17:28 +00:00
rax.py Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
redfish_utils.py Fix redfish_facts GetPsuInventory command not returning correct output (#52675) 2019-03-06 12:43:23 +00:00
redhat.py
scaleway.py Add a Scaleway load-balancer module (#51741) 2019-02-11 15:28:55 +00:00
service.py
splitter.py
univention_umc.py
urls.py uri/win_uri: Make method a free text field (#49719) 2019-02-28 15:55:18 -05:00
utm_utils.py Add optional headers to utm modules (#49856) 2019-01-17 19:06:50 +05:30
vca.py Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
vmware.py VMware: add cluster name in facts (#53056) 2019-03-06 10:15:26 +05:30
vmware_rest_client.py VMware: Tag management to VMware object (#46945) 2019-02-12 16:53:33 +05:30
vultr.py vultr: fix for API returned unexpected empty list (#48036) 2018-11-04 11:23:36 +01:00
xenserver.py Fix a bug that caused exception on XenServer 7.1 with Cummulative Update (#52303) 2019-02-19 12:36:57 +00:00
yumdnf.py yum/dnf: Add download_dir param (#53171) 2019-03-04 13:08:58 -05:00