From cb40778b84c785bbd4f1735169a74b1a4584bc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag=20Wie=C3=ABrs?= Date: Fri, 13 Jul 2012 11:07:32 +0200 Subject: [PATCH] Wrong evaluation of a local file before fetching the remote file --- lib/ansible/runner/connection/ssh.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/runner/connection/ssh.py b/lib/ansible/runner/connection/ssh.py index ebd24983d41..2d0f15e8bf6 100644 --- a/lib/ansible/runner/connection/ssh.py +++ b/lib/ansible/runner/connection/ssh.py @@ -126,8 +126,6 @@ class SSHConnection(object): def fetch_file(self, in_path, out_path): ''' fetch a file from remote to local ''' - if not os.path.exists(in_path): - raise errors.AnsibleFileNotFound("file or module does not exist: %s" % in_path) sftp_cmd = ["sftp"] + self.common_args + [self.host] p = subprocess.Popen(sftp_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)