Toshio Kuratomi
124bb92416
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 454f741ef5
as that one was only targetted as a single field.
9 years ago
Toshio Kuratomi
454f741ef5
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().
9 years ago
John R Barker
312f578f93
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
9 years ago
Martin Matuška
f07e3d297f
Force download if checksums do not match ( #4262 )
9 years ago
afunix
ab7fe884d7
Updated get_url module to process FTP results correctly [ #3661 ] ( #4601 )
9 years ago
Michael Scherer
1acb23f8d6
Fix uri to run on python3 ( #4580 )
...
Since dict no longer have a method iteritems, we have to use
the six wrapper.
10 years ago
Timothy Appnel
2538c70d46
Fixes get_url examples in docs and applies native YAML syntax. ( #4474 )
10 years ago
Roman
78adaf2116
get_url headers param values parsing ( #4245 )
10 years ago
Brian Coca
46d6bead71
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
10 years ago
Brian Coca
172bd21f41
Revert "Add mode option to the list" ( #3946 )
10 years ago
Victor Bocharsky
3573223aeb
Add mode option to docstring for get_url ( #3630 )
...
Add mode option to the list
10 years ago
jctanner
4a3916bd46
Use the six import for urlsplit instead of importing directly. ( #3902 )
...
Fixes https://github.com/ansible/ansible/issues/16191
10 years ago
Toshio Kuratomi
cb1093e085
Fix the six import
10 years ago
Toshio Kuratomi
469169f654
Be sure to import urllib.parse from somewhere
10 years ago
Michael Scherer
cc99fe24fc
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
10 years ago
Brian Coca
9ae898c902
made note about slurp memory consumption
10 years ago
James Cammarata
b1641ec486
Remove extraneous debug stuff from uri module left over from testing
10 years ago
James Cammarata
84ee00bb42
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
10 years ago
jctanner
804a8e6378
Fix status check on get_url with file schemas and update the examples. ( #3512 )
...
Addresses #3511
10 years ago
Toshio Kuratomi
a2f41dfb04
Give headers a default so that we can add to it.
10 years ago
Toshio Kuratomi
d71b9bae89
If file attribs are specified set them even if file already exists.
...
Fixes #11821
10 years ago
Matt Martz
3c59eedb9b
Don't pass follow_redirects to fetch_url, use module.params instead
10 years ago
Brian Coca
0bbb7ba38d
Merge pull request #3135 from mscherer/improve_uri_doc
...
Fix non RFC 2606 domain name in doc
10 years ago
Toshio Kuratomi
7088f72742
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.
10 years ago
Toshio Kuratomi
3853d2a9a6
Change parameter to type=path
...
Read as binary for python3 preparedness
10 years ago
Michael Scherer
d81a6740ec
Fix non RFC 2606 domain name in doc
10 years ago
Brian Coca
7162623e86
Merge pull request #2913 from msvab/devel
...
Clarify get_url timeout documentation
10 years ago
Matt Martz
adf2125339
Indicate in notes that the dependency on httplib2 was removed for v2.1
10 years ago
Matt Martz
7f206fdfe8
Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls
10 years ago
Brian Coca
f5a374103f
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
10 years ago
Michal Svab
2c3ef42d92
Clarify get_url timeout documentation
10 years ago
Brian Coca
df222bed86
added missing version_added
10 years ago
techraf
49ec5a6a30
Added 'backup' parameter to get_url module
10 years ago
Brian Coca
1229adb36c
Merge pull request #2609 from cspollar/devel
...
Fixed typo in uri module example
10 years ago
Brian Coca
292a83cba7
corrected version_added for new temp_dest feature
10 years ago
Brian Coca
d2eaf33add
Merge pull request #1887 from sysadmin75/9512_get_url_tmp_option2
...
Adds tmp_dest option to get_url module.
10 years ago
cspollar
34f7d7b068
Fixed typo in uri module example
10 years ago
Toshio Kuratomi
22c2789b72
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
10 years ago
Toshio Kuratomi
49ee5dd443
Remove debugging
10 years ago
Toshio Kuratomi
11833906b5
xmlcharrefreplace is only for encoding, not for decoding :-(
10 years ago
Brian Coca
f33fba84c0
specified that uri must be uppercase
10 years ago
Brian Coca
144291120e
restored quotes to checksum description to avoid breaking docs
10 years ago
JM
7943b3e6b0
description for the get_url module describing checksum verification before file download
10 years ago
Sam Mingo
7982d582d9
Update get_url.py
...
Fixed typo with header parameter to get_url in the documentation.
10 years ago
Colin Hutchinson
ab50943887
Update get_url.py
...
use an abbreviated sha
11 years ago
Colin Hutchinson
880dc307b0
Remove the sample SHA256
...
putting a full sha256 made the width of the table in the generated docs not fit on some screens
11 years ago
Toshio Kuratomi
8412adc4f9
Quote checksum description to fix docs
11 years ago
muffl0n
4f0cf6d2ca
Allow additional hashing algorithms. Directly use hashlib and check if
...
used algorithm is supported.
11 years ago
sysadmin75
cd8bfc7695
Adds tmp_dest option to get_url module.
...
Addresses the issue in ansible/ansible#9512
11 years ago
Brian Coca
587370e2e7
minor doc fixes to get_url
11 years ago