Port arg specs from type='str' to type='path'

This commit is contained in:
Toshio Kuratomi 2017-10-07 14:57:13 -07:00
parent dc69af50dc
commit 75eed6a51a
12 changed files with 27 additions and 40 deletions

View file

@ -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,