community.general/lib/ansible
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
..
cli Fix config manager to show errors 2018-08-01 19:42:35 -07:00
compat Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
config Only print warning when ansible.cfg is actually skipped (#43583) 2018-08-03 10:39:33 -07:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor Prevent data being truncated over persistent connection socket (#43885) 2018-08-10 09:26:58 -04:00
galaxy Fix invalid Dockerfile created by "galaxy init --type apb" (#42017) 2018-07-17 08:11:42 +05:30
inventory Error on empty group/host name (#42584) 2018-07-12 09:59:00 -04:00
module_utils module_utils/vultr.py: Ensure comparison is accurate (#43298) 2018-08-11 04:48:44 -04:00
modules cs_pod: workaround for 4.11 API break (#43944) 2018-08-11 09:22:14 +02:00
parsing Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
playbook handle env exception in gathering even no inject (#43569) 2018-08-10 15:11:20 -04:00
plugins Display correct task title with strategy 'free' (fixes #43950) 2018-08-10 23:39:44 -07:00
template Add specific exceptions to except 2018-08-01 16:42:05 -04:00
utils docs: Fixed wrong storage platform on module docs for EMC VNX (#43899) 2018-08-11 09:29:34 +02:00
vars delegate_to: accept only string for delegation host (#43473) 2018-08-06 11:40:12 +05:30
__init__.py
constants.py Fix spelling of ansbile to ansible (#43898) 2018-08-09 18:32:42 -04:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00