community.general/lib/ansible/modules/cloud
Sam Doran ff88bd82b5
Move type checking methods out of basic.py and add unit tests (#53687)
* Move check_type_str() out of basic.py

* Move check_type_list() out of basic.py

* Move safe_eval() out of basic.py

* Move check_type_dict() out of basic.py

* Move json importing code to common location

* Move check_type_bool() out of basic.py

* Move _check_type_int() out of basic.py

* Move _check_type_float() out of basic.py

* Move _check_type_path() out of basic.py

* Move _check_type_raw() out of basic.py

* Move _check_type_bytes() out of basic.py

* Move _check_type_bits() out of basic.py

* Create text.formatters.py

Move human_to_bytes, bytes_to_human, and _lenient_lowercase out of basic.py into text.formatters.py
Change references in modules to point to function at new location

* Move _check_type_jsonarg() out of basic.py

* Rename json related functions and put them in common.text.converters

Move formatters.py to common.text.formatters.py and update references in modules.

* Rework check_type_str()

Add allow_conversion option to make the function more self-contained.
Move the messaging back to basic.py since those error messages are more relevant to using this function in the context of AnsibleModule and not when using the function in isolation.

* Add unit tests for type checking functions

* Change _lenient_lowercase to lenient_lowercase per feedback
2019-03-21 09:40:19 -04:00
..
alicloud Fix incorrect use of `is` for comparisons. 2019-02-12 16:33:13 -08:00
amazon ec2_vpc_vpn: Add delay and wait_timeout parameter (#53940) 2019-03-18 11:05:51 -05:00
atomic Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
azure more doc improvements (#54148) 2019-03-21 17:01:51 +08:00
centurylink Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
cloudscale Fix failure of cloudscale_floating_ip without server (#53702) 2019-03-15 09:50:09 +00:00
cloudstack cloudstack: streamline modules doc (part 4) (#53874) 2019-03-17 08:38:02 +01:00
digital_ocean Assorted pylint fixes 2019-02-15 06:54:47 -08:00
dimensiondata Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
docker Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00
google Bug fixes for GCP modules (#53880) 2019-03-15 17:49:49 -04:00
hcloud hcloud_server: streamline label handling (#53633) 2019-03-11 16:57:23 +01:00
heroku
kubevirt Corrected Kubevirt template in the example (#54029) 2019-03-20 08:14:29 +05:30
linode Final round of moving modules to new import error msg (#51852) 2019-02-08 10:07:01 +10:00
lxc Fix module issues (#52209) 2019-02-15 12:57:20 +01:00
lxd lxd_container fix to check for snap package install unix.socket #34924 (#51541) 2019-02-22 09:24:07 +00:00
memset Fix various sonarcloud issues 2019-02-15 07:19:04 -08:00
misc virt_net modify should fail when tag is not host (#53679) 2019-03-19 22:13:17 +05:30
oneandone
online
opennebula add range_start and range_end agrs when query vm by a single id (#50056) 2018-12-20 01:51:20 -05:00
openstack Add port_security_enabled argument to os_port module (#47715) 2019-03-07 14:56:50 -05:00
ovh Fixed typo from adress to address (#52143) 2019-02-13 13:57:13 +05:30
ovirt ovirt: default save true in setup host networks (#49983) 2019-03-13 15:45:07 +00:00
packet
profitbricks
pubnub
rackspace
scaleway Fix module issues (#52209) 2019-02-15 12:57:20 +01:00
smartos New Module for SmartOS: nictagadm (#35919) 2019-01-23 04:57:46 +01:00
softlayer
spotinst Spotinst - adding support for instance health check validation (#49211) 2019-01-18 20:30:03 +00:00
univention Assorted pylint fixes 2019-02-15 06:54:47 -08:00
vmware Move type checking methods out of basic.py and add unit tests (#53687) 2019-03-21 09:40:19 -04:00
vultr Add snapshot support for vultr_server (#52781) 2019-02-24 19:57:19 +01:00
webfaction Assorted pylint fixes 2019-02-15 06:54:47 -08:00
xenserver XenServer: Minor bug fixes (#53826) 2019-03-15 08:54:17 +00:00
__init__.py