remote: ssh: remove unused code

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-01 21:19:24 +03:00
parent aca3abff26
commit 3405a1ec47
-9
View File
@@ -75,15 +75,6 @@ class RemoteSSH(RemoteBase):
return ssh
def _exists(self, ssh, path_info):
try:
ssh.open_sftp().open(path_info['path'], 'r')
return True
except IOError as exc:
if exc.errno != errno.ENOENT:
raise
return False
def exists(self, path_infos):
ret = []
ssh = self.ssh(host=self.host, user=self.user)