community.general/lib/ansible/module_utils
Yanis Guenane ffcdc53536 module_utils/vultr.py: Ensure comparison is accurate (#43298)
In query_resource_by_key(), there is an equal comparison that is made to
know if the object we are looking for is present. Due to type difference
this comparison doesn't always retrieve true, even when it should.

This is due to the fact that the value in r_data dict are of type
unicode, while the other can be of type int, float,... .

```
>>> a = u'1'
>>> type(a)
<type 'unicode'>
>>> b = 1
>>> type(b)
<type 'int'>
>>> a == b
False
>>> str(a) == str(b)
True
```

Hence the values, for comparison purposes, are casted into strings.
2018-08-11 04:48:44 -04:00
..
aws Implement signed_request for sigV4 requests (#42758) 2018-08-03 08:31:10 +10:00
common make lockfile destination settable and update doc (#42795) 2018-08-08 06:52:11 -07:00
compat Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
facts fix alt linux detection for new versions (#43723) 2018-08-10 15:16:33 -04:00
k8s Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
net_tools Allow DNS bypass for add/remove of host records with nios_host_record (#42934) 2018-08-01 10:33:58 +05:30
network new nos_command module (#43056) 2018-08-10 13:50:02 -07:00
parsing Improve convert_bool error message 2018-02-12 13:05:38 -05:00
powershell PrivilegeUtil: use native methods to get pointer offset (#43461) 2018-07-30 18:33:49 -04:00
remote_management Connection and MAC pool module for Cisco UCS (#31151) 2017-12-14 19:38:35 +01:00
six Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
storage New module for managing EMC VNX Block storage (#42945) 2018-08-09 10:38:26 -07: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 modules: documentation improvements (#42165) 2018-07-04 15:22:11 +02: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: move HAS_TOWER_CLI check in module_utils and minor improvements (#39809) 2018-08-02 11:17:39 -04:00
api.py Remove comments about import order 2017-08-07 19:46:06 -07:00
azure_rm_common.py add azure_rm_webapp (#40005) 2018-08-07 15:53:15 -07:00
azure_rm_common_rest.py introducing azure_rm_resource (#39274) 2018-05-23 16:55:57 -07:00
basic.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
cloud.py AWSRetry: allow retrying on additional ClientError exceptions (#28483) 2017-08-22 15:31:20 -04:00
cloudscale.py cloudscale_floating_ip module (#33181) 2017-12-11 14:48:35 +00:00
cloudstack.py cloudstack: fix query tags by resourceid (#40482) 2018-05-21 17:16:44 +02:00
connection.py Prevent data being truncated over persistent connection socket (#43885) 2018-08-10 09:26:58 -04:00
crypto.py Allow multiple values per key in name fields in openssl_certificate/csr (#30338) 2017-12-12 12:35:22 +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 dimensiondata: fix broken import (#35634) 2018-02-07 00:44:42 +01:00
docker_common.py Fix ssl_version default value. (#42955) 2018-07-20 11:32:04 -04:00
ec2.py [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04: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 Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
gcp_utils.py GCP Inventory Plugin scopes fix 2018-06-08 13:04:37 -07:00
gitlab.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
heroku.py New module: heroku_collaborator (#39001) 2018-05-22 11:50:53 +02:00
infinibox.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
influxdb.py influxdb: Add condition for retries argument (#38441) 2018-04-15 22:05:51 -04:00
ipa.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05: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 Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
ldap.py LDAP: Refactor and add ldap_passwd module (#33040) 2018-04-27 15:54:05 +05:30
lxd.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
manageiq.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
memset.py New Memset module to request DNS reloads (#40390) 2018-05-25 00:30:25 +02:00
mysql.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
netapp.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07:00
netapp_elementsw_module.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07:00
netapp_module.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07: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 DatacenterFactsModule for HPE OneView (#32701) 2017-11-28 13:49:51 +00:00
opennebula.py Fix opennebula test stub (#40436) 2018-05-25 07:42:14 +02:00
openstack.py openstack: Correct fail_json call in module_utils (#41064) 2018-06-04 10:18:15 +02:00
ovirt.py Fix PEP 8 issue. 2018-05-23 09:29:37 -07:00
postgres.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
pure.py Initial commit for Pure Storage FlashBlade module (#32467) 2018-02-22 15:33:48 -05:00
pycompat24.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
rax.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
redfish_utils.py Add new module for Redfish APIs (#41656) 2018-07-27 12:21:25 -04:00
redhat.py Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
scaleway.py Add a User-Agent string to the API request (#38587) 2018-05-14 09:55:47 -05: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 Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
vca.py Use response.content instead of response object (#25772) 2017-08-14 12:40:06 -04:00
vmware.py VMware: handle special characters in datacenter name (#42922) 2018-07-27 12:17:10 +05:30
vmware_rest_client.py VMware: New module: vmware_tag (#37261) 2018-05-07 16:30:16 +05:30
vultr.py module_utils/vultr.py: Ensure comparison is accurate (#43298) 2018-08-11 04:48:44 -04:00