X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=deploy%2Fssh_client.py;h=24119dbfa6dc9b594d3efe8955c7887da5333e5d;hb=00c404ef7066e31adfc409a15d9e0e118e0b491a;hp=f6888d52de55dcba3106a376b7d3957a55d328e4;hpb=109b0e70eb9963fd5d4aa8e7fda3cc30ec7752b9;p=fuel.git diff --git a/deploy/ssh_client.py b/deploy/ssh_client.py index f6888d52d..24119dbfa 100644 --- a/deploy/ssh_client.py +++ b/deploy/ssh_client.py @@ -1,6 +1,7 @@ ############################################################################### # Copyright (c) 2015 Ericsson AB and others. # szilard.cserey@ericsson.com +# peter.barabas@ericsson.com # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at @@ -85,14 +86,18 @@ class SSHClient(object): def scp_get(self, remote, local='.', dir=False): try: - with scp.SCPClient(self.client.get_transport(), sanitize=lambda x: x) as _scp: + with scp.SCPClient(self.client.get_transport(), + sanitize=lambda x: x, + socket_timeout=TIMEOUT) as _scp: _scp.get(remote, local, dir) except Exception as e: err(e) def scp_put(self, local, remote='.', dir=False): try: - with scp.SCPClient(self.client.get_transport(), sanitize=lambda x: x) as _scp: + with scp.SCPClient(self.client.get_transport(), + sanitize=lambda x: x, + socket_timeout=TIMEOUT) as _scp: _scp.put(local, remote, dir) except Exception as e: err(e)