From c10cf880a89825d117270275c3f84434ba26708c Mon Sep 17 00:00:00 2001 From: Simon Schuster Date: Sun, 1 Apr 2018 23:44:29 +0200 Subject: [PATCH] Bugfix: Ignore "checksum" parameter in copy module When copying, recent versions of ansible set the "checksum" field of the json-payload for validation of the file after copy. As of now, we simply ignore the parameter. --- src/copy.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/copy.lua b/src/copy.lua index d0ef233..0a693c1 100644 --- a/src/copy.lua +++ b/src/copy.lua @@ -32,6 +32,8 @@ function main(arg) , validate = { required=false, type='str' } , directory_mode = { required=false } , remote_src = { required=false, type='bool' } + -- sha256sum, to check if the copy was successful - currently ignored + , checksum = {} -- file common args