mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 05:35:42 +09:00
M #-: Fix stdin processing in SshStreamCommand (#1043)
This commit is contained in:
1 parent
0793bde8ed
commit
02736a1d85
1 file changed
+5
-1
@@ -221,7 +221,11 @@ class SshStreamCommand < RemotesCommand
|
||||
end
|
||||
|
||||
@stream.exec(command)
|
||||
@stream.stdin.write(stdin) if stdin
|
||||
|
||||
if stdin
|
||||
@stream.stdin.write(stdin)
|
||||
@stream.stdin.close
|
||||
end
|
||||
|
||||
@code = @stream.wait_for_command(@timeout)
|
||||
|
||||
|
||||
Reference in new issue
Block a user