diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2020-12-21 11:20:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 11:20:52 -0500 |
commit | 932ba3616067007fd5e449611a34e7e3837fc8ae (patch) | |
tree | 81f17f85e3cc4fb905d2993545c4f96c6f6daf44 /lib/ansible/modules/get_url.py | |
parent | 202689b1c0560b68a93e93d0a250ea186a8e3e1a (diff) | |
download | ansible-932ba3616067007fd5e449611a34e7e3837fc8ae.tar.gz |
ensure unsafe writes fallback (#70722)
* Ensure we actually fallback to unsafe_writes when set to true
add integration test
add fix for get_url not passing the parameter from args
Diffstat (limited to 'lib/ansible/modules/get_url.py')
-rw-r--r-- | lib/ansible/modules/get_url.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/get_url.py b/lib/ansible/modules/get_url.py index 6ac370c2ef..c29d69e5c9 100644 --- a/lib/ansible/modules/get_url.py +++ b/lib/ansible/modules/get_url.py @@ -630,7 +630,7 @@ def main(): if backup: if os.path.exists(dest): backup_file = module.backup_local(dest) - module.atomic_move(tmpsrc, dest) + module.atomic_move(tmpsrc, dest, unsafe_writes=module.params['unsafe_writes']) except Exception as e: if os.path.exists(tmpsrc): os.remove(tmpsrc) |