1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #4716: add timeout to SshStream#wait_for_command

This commit is contained in:
Javi Fontan 2016-09-07 14:27:26 +02:00
parent af0e87d399
commit 199d02bb29

View File

@ -110,7 +110,9 @@ class SshStream
end
end
def wait_for_command
def wait_for_command(timeout = nil)
@timeout = timeout if timeout
done_out = false
done_err = false
time_start = Time.now.to_i