1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

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

This reverts commit 02736a1d85f1e20067100fc35dfac1084511065d.
This commit is contained in:
Ruben S. Montero 2021-04-12 10:58:18 +02:00
parent 16ff61ca03
commit ed686cfc87
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -221,11 +221,7 @@ class SshStreamCommand < RemotesCommand
end
@stream.exec(command)
if stdin
@stream.stdin.write(stdin)
@stream.stdin.close
end
@stream.stdin.write(stdin) if stdin
@code = @stream.wait_for_command(@timeout)