1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

file does not exist is not an error when checksumming for the template modules

This commit is contained in:
Toshio Kuratomi 2014-12-08 13:08:26 -08:00
parent f2d2f425ae
commit 3a5aec9743

View file

@ -92,7 +92,9 @@ class ActionModule(object):
local_checksum = utils.checksum_s(resultant)
remote_checksum = self.runner._remote_checksum(conn, tmp, dest, inject)
if remote_checksum in ('0', '1', '2', '3', '4'):
if remote_checksum in ('0', '2', '3', '4'):
# Note: 1 means the file is not present which is fine; template
# will create it
result = dict(failed=True, msg="failed to checksum remote file."
" Checksum error code: %s" % remote_checksum)
return ReturnData(conn=conn, comm_ok=True, result=result)