mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
f #4716: add timeout to SshStreamCommand#run
This commit is contained in:
1 parent
85d265cad7
commit
6cb9635bdb
1 file changed
+3
-1
@@ -192,7 +192,9 @@ class SshStreamCommand < RemotesCommand
|
||||
@stream = SshStream.new(host, shell, timeout)
|
||||
end
|
||||
|
||||
def run(command, stdin=nil, base_cmd = nil)
|
||||
def run(command, stdin=nil, base_cmd = nil, timeout = nil)
|
||||
@timeout = timeout if timeout
|
||||
|
||||
@stream.open unless @stream.opened?
|
||||
|
||||
if base_cmd #Check if base command is on remote host
|
||||
|
||||
Reference in new issue
Block a user