Sam Doran
895179929c
Examples syntax batch6 ( #5623 )
...
* Change example syntax on os_auth module
* Change example syntax on os_client_config module
* Change example syntax on os_image_facts module
* Change example syntax on os_networks_facts module
* Change example syntax on os_nova_flavor module
* Change example syntax on os_object module
* Change example syntax on os_server module
* Change example syntax on os_subnet_facts module
* Change example syntax on rax_files module
* Change example syntax on rax_files_objects module
* Change example syntax on mysql_db module
* Change example syntax on file module
* Change example syntax on uri module
* Change example syntax on cl_bond module
* Change example syntax on cl_bridge module
* Change example syntax on cl_img_install module
* Change example syntax on cl_interface module
* Change example syntax on cl_license module
* Change example syntax on cl_ports module
* Remove trailing colon
2016-12-08 11:25:31 -05:00
Toshio Kuratomi
38b3c43c68
Fix uri for change in case in response
...
In python3, response fields are title cased whereas in python2 they were
not. We return these fields to the module's caller so we need to
normalize all of them to be lower case.
This reverts the lowercase check from 454f741ef5b56cccd123e12d7b2e6fe31d47c755
as that one was only targetted as a single field.
2016-12-08 11:25:24 -05:00
Toshio Kuratomi
bd9e790cfe
First set of fixes for uri module to work with py3.
...
This fix handles changes in the response headers (no longer all
lowercased) and switches from unicode() to to_text().
2016-12-08 11:25:24 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
Martin Matuška
3366a95765
Force download if checksums do not match ( #4262 )
2016-12-08 11:25:04 -05:00
afunix
f2c324facc
Updated get_url module to process FTP results correctly [ #3661 ] ( #4601 )
2016-12-08 11:25:02 -05:00
Michael Scherer
b48e65219b
Fix uri to run on python3 ( #4580 )
...
Since dict no longer have a method iteritems, we have to use
the six wrapper.
2016-12-08 11:24:56 -05:00
Timothy Appnel
5b00b40c22
Fixes get_url examples in docs and applies native YAML syntax. ( #4474 )
2016-12-08 11:24:55 -05:00
Roman
7b547e3e0b
get_url headers param values parsing ( #4245 )
2016-12-08 11:24:49 -05:00
Brian Coca
01490688f4
document that get_url also takes file params
...
has for a long time, but was never documented, mode,group, owner can all be set here
2016-12-08 11:24:37 -05:00
Brian Coca
34b94ec4c4
Revert "Add mode option to the list" ( #3946 )
2016-12-08 11:24:37 -05:00
Victor Bocharsky
6037684d23
Add mode option to docstring for get_url ( #3630 )
...
Add mode option to the list
2016-12-08 11:24:37 -05:00
jctanner
48f096b52c
Use the six import for urlsplit instead of importing directly. ( #3902 )
...
Fixes https://github.com/ansible/ansible/issues/16191
2016-12-08 11:24:36 -05:00
Toshio Kuratomi
79d12db02f
Fix the six import
2016-12-08 11:24:35 -05:00
Toshio Kuratomi
8ba0af5df3
Be sure to import urllib.parse from somewhere
2016-12-08 11:24:35 -05:00
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -05:00
Brian Coca
ca7defeee5
made note about slurp memory consumption
2016-12-08 11:24:27 -05:00
James Cammarata
124c4b94c1
Remove extraneous debug stuff from uri module left over from testing
2016-12-08 11:24:23 -05:00
James Cammarata
50cd8b0aa5
Make sure uri output contains json output when a non-200 status is returned
...
Prior to the switch to the urls.py code, non-200 responses contained
a 'json' value when the content-type was JSON. This fix restores that
field upon a non-2xx response.
Fixes ansible/ansible#15555
2016-12-08 11:24:23 -05:00
jctanner
56f5ca37af
Fix status check on get_url with file schemas and update the examples. ( #3512 )
...
Addresses #3511
2016-12-08 11:24:20 -05:00
Toshio Kuratomi
6fae6c7b2d
Give headers a default so that we can add to it.
2016-12-08 11:24:14 -05:00
Toshio Kuratomi
4c9f9973dd
If file attribs are specified set them even if file already exists.
...
Fixes #11821
2016-12-08 11:24:13 -05:00
Matt Martz
fe22ee9423
Don't pass follow_redirects to fetch_url, use module.params instead
2016-12-08 11:24:10 -05:00
Toshio Kuratomi
9551e51607
At least for now, set body to raw as it can be either a dict or jsonified-str
...
Since our validation does conversion as well as validation, I'm not sure
this is entirely correct. May need to take a look at our conversion
code and re-examine to be sure we're doing it right.
2016-12-08 11:24:08 -05:00
Toshio Kuratomi
0400efa3f8
Change parameter to type=path
...
Read as binary for python3 preparedness
2016-12-08 11:24:08 -05:00
Michael Scherer
776d079e6b
Fix non RFC 2606 domain name in doc
2016-12-08 11:24:08 -05:00
Matt Martz
fada638d88
Indicate in notes that the dependency on httplib2 was removed for v2.1
2016-12-08 11:24:07 -05:00
Matt Martz
a18206355a
Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls
2016-12-08 11:24:07 -05:00
Brian Coca
5b07831a11
fixes for uri module
...
- clarify docs on body_json behaviour
- only tranform into json if body input is not a string
users keep passing json string and expecint it to not be jsonified again
- fixed issue with removes not handling path expansion correctly
- switched all path variables to 'type path' to handle expansions
2016-12-08 11:24:05 -05:00
Michal Svab
0676ecc03c
Clarify get_url timeout documentation
2016-12-08 11:24:03 -05:00
techraf
7d09792758
Added 'backup' parameter to get_url module
2016-12-08 11:24:00 -05:00
Brian Coca
42d0ce8744
corrected version_added for new temp_dest feature
2016-12-08 11:23:50 -05:00
cspollar
7ac010977b
Fixed typo in uri module example
2016-12-08 11:23:50 -05:00
sysadmin75
12c2c2b436
Adds tmp_dest option to get_url module. Addresses the issue in ansible/ansible#9512
2016-12-08 11:23:45 -05:00
Toshio Kuratomi
f6353a548c
Document and return an error if httplib2 >= 0.7 is not present. We
...
can't use httplib2 0.6.x and below because they do not verify TLS
certificates and thus are insecure.
Fixes #1875
2016-12-08 11:23:44 -05:00
Toshio Kuratomi
d5f3ac2a1d
Remove debugging
2016-12-08 11:23:41 -05:00
Toshio Kuratomi
931fa9b6b2
xmlcharrefreplace is only for encoding, not for decoding :-(
2016-12-08 11:23:41 -05:00
Brian Coca
0540769677
specified that uri must be uppercase
2016-12-08 11:23:41 -05:00
Brian Coca
5b1a508d6a
restored quotes to checksum description to avoid breaking docs
2016-12-08 11:23:39 -05:00
muszynski@so1.net
2e3ad2b80a
description for the get_url module describing checksum verification before file download
2016-12-08 11:23:39 -05:00
Sam Mingo
75473c0fd0
Update get_url.py
...
Fixed typo with header parameter to get_url in the documentation.
2016-12-08 11:23:35 -05:00
Colin Hutchinson
9d77cef5be
Remove the sample SHA256
...
putting a full sha256 made the width of the table in the generated docs not fit on some screens
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
1f9580f257
Quote checksum description to fix docs
2016-12-08 11:23:30 -05:00
muffl0n
6482d1344a
Allow additional hashing algorithms. Directly use hashlib and check if used algorithm is supported.
2016-12-08 11:23:28 -05:00
Brian Coca
3b94910d4e
minor doc fixes to get_url
2016-12-08 11:23:26 -05:00
Brian Coca
e5fe763474
fixed version added
2016-12-08 11:23:26 -05:00
Dan
5b4e7c797f
Added header support
...
Added the ability to pass custom http headers to the fetch_url method.
2016-12-08 11:23:25 -05:00
Brian Coca
f15ce1433a
added version_added to body_format in uri
2016-12-08 11:23:25 -05:00
Brian Coca
87c8d016dc
added version_Added to get_url's force_basic_auth
2016-12-08 11:23:22 -05:00
Iiro Uusitalo
d6fc0ac5be
uri.py is not using module_utils/urls.py from ansible core
2016-12-08 11:23:21 -05:00