From c0aac03b0c3a15591e62a193dd466a83b62539ba 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. --- library/get_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/get_url b/library/get_url index cb848f8683..37a713d322 100755 --- a/library/get_url +++ b/library/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)