mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix remote md5 in fetch module, related to Issue #450
This commit is contained in:
parent
51b460e8c6
commit
d0c4f4015c
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ class Runner(object):
|
||||||
local_md5 = None
|
local_md5 = None
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest):
|
||||||
local_md5 = os.popen("md5sum %s" % dest).read().split()[0]
|
local_md5 = os.popen("md5sum %s" % dest).read().split()[0]
|
||||||
remote_md5 = self._low_level_exec_command(conn, "md5sum %s" % source, tmp, True)[0].split()[0]
|
remote_md5 = self._low_level_exec_command(conn, "md5sum %s" % source, tmp, True).split()[0]
|
||||||
|
|
||||||
if remote_md5 != local_md5:
|
if remote_md5 != local_md5:
|
||||||
# create the containing directories, if needed
|
# create the containing directories, if needed
|
||||||
|
|
Loading…
Reference in a new issue