From d0c4f4015c3f3ac71705d07ffe3cf48ea3019364 Mon Sep 17 00:00:00 2001 From: Fred Alger Date: Tue, 5 Jun 2012 11:26:10 -0400 Subject: [PATCH] Fix remote md5 in fetch module, related to Issue #450 --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index a65ddfe15b..7b83619233 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -477,7 +477,7 @@ class Runner(object): local_md5 = None if os.path.exists(dest): 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: # create the containing directories, if needed