From eb2bdb66428d57b157dc6e8b071951621054113a Mon Sep 17 00:00:00 2001 From: Ali Asad Lotia Date: Fri, 14 Sep 2012 08:34:41 +0100 Subject: [PATCH] url_get module returns dest The url_get module now includes the destination in the returned JSON. --- get_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_url b/get_url index cb848f8683a..37a713d3226 100755 --- a/get_url +++ b/get_url @@ -148,7 +148,7 @@ def main(): if os.path.isdir(dest): module.fail_json(msg="non-thirsty mode needs a filename for a destination, not a directory") 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 tmpsrc, info = url_get(module, url, dest)