mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update developing_modules.rst
More specific about urllib2 restrictions
This commit is contained in:
parent
ec95ad1062
commit
ee7f7a82a8
1 changed files with 2 additions and 3 deletions
|
@ -501,9 +501,8 @@ Module checklist
|
|||
serializable. A common pitfall is to try returning an object via
|
||||
exit_json(). Instead, convert the fields you need from the object into the
|
||||
fields of a dictionary and return the dictionary.
|
||||
* Do not use urllib2 to handle urls. urllib2 does not natively verify TLS
|
||||
certificates and so is insecure for https. Instead, use either fetch_url or
|
||||
open_url from ansible.module_utils.urls.
|
||||
* When fetching URLs, please use either fetch_url or open_url from ansible.module_utils.urls
|
||||
rather than urllib2; urllib2 does not natively verify TLS certificates and so is insecure for https.
|
||||
|
||||
Windows modules checklist
|
||||
`````````````````````````
|
||||
|
|
Loading…
Reference in a new issue