From 7e557663c26b96feb54afea7b8aa74eaaa1535e7 Mon Sep 17 00:00:00 2001 From: Eric Hanchrow Date: Wed, 5 Feb 2014 10:58:48 -0800 Subject: [PATCH] Clarify doc for get_url Move a sentence from doc for the "force" option to that for the "dest" option. --- library/network/get_url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/network/get_url b/library/network/get_url index 28ee72a51f3..9704b8dbadb 100644 --- a/library/network/get_url +++ b/library/network/get_url @@ -52,6 +52,8 @@ options: - If C(dest) is a directory, either the server provided filename or, if none provided, the base name of the URL on the remote server will be used. If a directory, C(force) has no effect. + If C(dest) is a directory, the file will always be + downloaded (regardless of the force option), but replaced only if the contents changed. required: true default: null force: @@ -61,8 +63,6 @@ options: will only be downloaded if the destination does not exist. Generally should be C(yes) only for small local files. Prior to 0.6, this module behaved as if C(yes) was the default. - Has no effect if C(dest) is a directory - the file will always be - downloaded, but replaced only if the contents changed. version_added: "0.7" required: false choices: [ "yes", "no" ] @@ -335,7 +335,7 @@ def main(): else: changed = False - # Check the digest of the destination file and ensure that it matches the + # Check the digest of the destination file and ensure that it matches the # sha256sum parameter if it is present if sha256sum != '': # Remove any non-alphanumeric characters, including the infamous