[TRAVIS] Do not StrictHostKeyChecking to allow scp script to connect.

By default, at first connection, the user has to accept the server
host_key.
As we are running on travis, there is no user.
Make ssh automatically add new host_key to know_hosts file.
This commit is contained in:
Matthieu Gautier 2017-02-08 15:16:33 +01:00
parent 99c94b552e
commit d3d6e54d3f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Deployer:
def deploy(self, *files):
if not files:
return
command = "scp -v -p -i {id_file} {files_list} {host_addr}".format(
command = "scp -v -p -i -o StrictHostKeyChecking=no {id_file} {files_list} {host_addr}".format(
id_file=self.options.ssh_private_key,
files_list=' '.join("'{}'".format(f) for f in files),
host_addr="{}:{}".format(self.options.server, self.options.base_path)