[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:
parent
99c94b552e
commit
d3d6e54d3f
|
@ -53,7 +53,7 @@ class Deployer:
|
||||||
def deploy(self, *files):
|
def deploy(self, *files):
|
||||||
if not files:
|
if not files:
|
||||||
return
|
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,
|
id_file=self.options.ssh_private_key,
|
||||||
files_list=' '.join("'{}'".format(f) for f in files),
|
files_list=' '.join("'{}'".format(f) for f in files),
|
||||||
host_addr="{}:{}".format(self.options.server, self.options.base_path)
|
host_addr="{}:{}".format(self.options.server, self.options.base_path)
|
||||||
|
|
Loading…
Reference in New Issue