url_get module returns dest
The url_get module now includes the destination in the returned JSON.
This commit is contained in:
parent
6867d9730e
commit
eb2bdb6642
1 changed files with 1 additions and 1 deletions
2
get_url
2
get_url
|
@ -148,7 +148,7 @@ def main():
|
||||||
if os.path.isdir(dest):
|
if os.path.isdir(dest):
|
||||||
module.fail_json(msg="non-thirsty mode needs a filename for a destination, not a directory")
|
module.fail_json(msg="non-thirsty mode needs a filename for a destination, not a directory")
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest):
|
||||||
module.exit_json(msg="file already exists", changed=False)
|
module.exit_json(msg="file already exists", dest=dest, url=url, changed=False)
|
||||||
|
|
||||||
# download to tmpsrc
|
# download to tmpsrc
|
||||||
tmpsrc, info = url_get(module, url, dest)
|
tmpsrc, info = url_get(module, url, dest)
|
||||||
|
|
Loading…
Reference in a new issue