mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #4716: add timeout to SshStream#wait_for_command
This commit is contained in:
1 parent
af0e87d399
commit
199d02bb29
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user