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

M #-: Fix stdin processing in SshStreamCommand (#1043)

(cherry picked from commit 02736a1d85f1e20067100fc35dfac1084511065d)
This commit is contained in:
Jan Orel 2021-04-09 10:36:08 +02:00 committed by Ruben S. Montero
parent 8c7a8efad0
commit 584f12a517
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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)