Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicos Maris committed Feb 4, 2017
1 parent 242e2a6 commit d387cdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ssh2vm.py
Expand Up @@ -23,7 +23,6 @@ def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)


env.timeout = 360
env.connection_attempts = 5

class SSH2VM:
Expand All @@ -40,10 +39,10 @@ def execute(self, command, env_vars_dict=None):
"""
if env_vars_dict==None:
with settings(host_string='root@'+self.ip, key_filename='key'):
run(command, stdout=sys.stdout, stderr=sys.stderr)
run(command, stdout=sys.stdout, stderr=sys.stderr, pty=False, timeout=360)
else:
with settings(shell_env(**env_vars_dict), host_string='root@' + self.ip, key_filename='key'):
run(command, stdout=sys.stdout, stderr=sys.stderr)
run(command, stdout=sys.stdout, stderr=sys.stderr, pty=False, timeout=360)

def wait_net_service(self, port, timeout=None):
""" Wait for network service to appear
Expand Down

0 comments on commit d387cdd

Please sign in to comment.