mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Port arg specs from type='str' to type='path'
This commit is contained in:
parent
dc69af50dc
commit
75eed6a51a
12 changed files with 27 additions and 40 deletions
|
@ -326,7 +326,6 @@ def uri(module, url, dest, body, body_format, method, headers, socket_timeout):
|
|||
# we'll reset back to the supplied value soon
|
||||
follow_redirects = module.params['follow_redirects']
|
||||
module.params['follow_redirects'] = False
|
||||
dest = os.path.expanduser(dest)
|
||||
if os.path.isdir(dest):
|
||||
# first check if we are redirected to a file download
|
||||
_, redir_info = fetch_url(module, url, data=body,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue