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

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

This reverts commit 584f12a51770d30cd0f76350f276743905de46b8.
This commit is contained in:
Ruben S. Montero 2021-04-12 10:57:44 +02:00
parent bfda3c77ff
commit f2e90df506
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)