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:
parent
af0e87d399
commit
199d02bb29
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user