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 Improve convert_bool error message 2018-02-12 13:05:38 -05:00
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 Enhance empty __init__ code-smell to check module_utils (#33438) 2017-11-30 15:47:38 -08:00
_text.py Fix for to_text and to_bytes error handlers 2017-07-24 09:19:04 -07:00
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 [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
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 AWSRetry: allow retrying on additional ClientError exceptions (#28483) 2017-08-22 15:31:20 -04:00
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 Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
digital_ocean.py Include Digital Ocean Token Alias (#36810) 2018-03-01 09:56:53 +05:30
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 exo_dns_record: remove limitation for multiple records only for A type (#35173) 2018-02-05 22:40:02 +01:00
f5_utils.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
firewalld.py refactor firewalld module, add firewalld module_util (#37603) 2018-04-30 15:33:28 -05:00
gcdns.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
gce.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
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 fix typo 2016-02-08 19:10:04 +01:00
json_utils.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
keycloak.py New module: keycloak_clienttemplate (#33419) 2018-01-31 13:12:53 +00:00
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 New module: manage 1&1 public ip (cloud/oneandone/oneandone_public_ip) (#35079) 2018-02-07 12:15:27 -06:00
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 Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
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 Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
scaleway.py Add a Scaleway load-balancer module (#51741) 2019-02-11 15:28:55 +00:00
service.py Fix typo of stderr 2018-07-31 13:23:05 -04:00
splitter.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
univention_umc.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
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