mirror of
https://github.com/inspec/inspec
synced 2024-11-11 07:34:15 +00:00
bugfix: ensure pseudo pty on remote
This first came up when scanning a RHEL6 EC2 box. Serverspec throws this error when the channel doesn't support a stdin. Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
5d4e44872c
commit
35d3ee6b19
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ if ENV['SSH_SPEC']
|
|||
set :sudo_options, ENV['SUDO_OPTIONS']
|
||||
end
|
||||
|
||||
set :request_pty, true
|
||||
|
||||
RSpec.configure do |c|
|
||||
options = {}
|
||||
c.sudo_password = ENV['SUDO_PASSWORD'] || ENV['sudo_password']
|
||||
|
|
Loading…
Reference in a new issue