X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftopo_installation.py;h=5dbaaaa2f83a6c5773bd1efbb64411b4f962c866;hp=3e3fda864ee7aafd1954934472f69ce93351750e;hb=6baa0bc9921bc13b1adff113c20a4db766c3feba;hpb=292e156ce0e11bb70226602a0978fbed5352172d diff --git a/resources/tools/topo_installation.py b/resources/tools/topo_installation.py index 3e3fda864e..5dbaaaa2f8 100755 --- a/resources/tools/topo_installation.py +++ b/resources/tools/topo_installation.py @@ -35,9 +35,9 @@ def ssh_no_error(ssh, cmd, sudo=False): """ if sudo: - ret, stdo, stde = ssh.exec_command_sudo(cmd) + ret, stdo, stde = ssh.exec_command_sudo(cmd, timeout=60) else: - ret, stdo, stde = ssh.exec_command(cmd) + ret, stdo, stde = ssh.exec_command(cmd, timeout=60) if ret != 0: print 'Command execution failed: "{}"'.format(cmd)