mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
bugfix: do not allocate pty on ssh by default
PTY will effectively disable stderr output, so avoid it for now. It will come up very soon when we get back to sudo; see if fifo or other solutions might be used. Stderr is important for accurate command execution... For reference see this wonderful explanation: http://unix.stackexchange.com/a/134169 Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
c3d226e4a2
commit
6d7a46a589
1 changed files with 0 additions and 3 deletions
|
@ -24,9 +24,6 @@ module Vulcano::Backends
|
|||
cmd.force_encoding('binary') if cmd.respond_to?(:force_encoding)
|
||||
|
||||
@ssh.open_channel do |channel|
|
||||
channel.request_pty do |_, success|
|
||||
abort 'Could not obtain pty on SSH channel ' if !success
|
||||
end
|
||||
channel.exec(cmd) do |_, success|
|
||||
unless success
|
||||
abort 'Couldn\'t execute command on SSH.'
|
||||
|
|
Loading…
Reference in a new issue