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
amazon ec2_vpc_vpn: Add delay and wait_timeout parameter (#53940) 2019-03-18 11:05:51 -05:00
atomic
azure more doc improvements (#54148) 2019-03-21 17:01:51 +08:00
centurylink
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
dimensiondata
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
lxc
lxd lxd_container fix to check for snap package install unix.socket #34924 (#51541) 2019-02-22 09:24:07 +00:00
memset
misc virt_net modify should fail when tag is not host (#53679) 2019-03-19 22:13:17 +05:30
oneandone
online
opennebula
openstack Add port_security_enabled argument to os_port module (#47715) 2019-03-07 14:56:50 -05:00
ovh
ovirt ovirt: default save true in setup host networks (#49983) 2019-03-13 15:45:07 +00:00
packet
profitbricks
pubnub
rackspace
scaleway
smartos
softlayer
spotinst
univention
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
xenserver XenServer: Minor bug fixes (#53826) 2019-03-15 08:54:17 +00:00
__init__.py