summaryrefslogtreecommitdiff
path: root/lib/chef/knife/ssh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/ssh.rb')
-rw-r--r--lib/chef/knife/ssh.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb
index 8b254c13aa..d65b1af000 100644
--- a/lib/chef/knife/ssh.rb
+++ b/lib/chef/knife/ssh.rb
@@ -27,6 +27,7 @@ class Chef
require "net/ssh" unless defined?(Net::SSH)
require "net/ssh/multi"
require "readline"
+ require "tty-prompt"
require_relative "../exceptions"
require_relative "../search/query"
require_relative "../util/path_helper"
@@ -385,6 +386,7 @@ class Chef
end
ch.on_extended_data do |_, _type, data|
+ raise ArgumentError if data.eql?("sudo: no tty present and no askpass program specified\n")
stderr += data
end