From 7217f748225b2c22120f7522a2e42ee3dc5b6359 Mon Sep 17 00:00:00 2001 From: Kapil Chouhan Date: Tue, 8 Dec 2020 17:25:14 +0530 Subject: Fix for deprecation warning Signed-off-by: Kapil Chouhan --- lib/chef/knife/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index a586bf37c2..8b254c13aa 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -289,7 +289,7 @@ class Chef opts[:port] = port unless port.nil? opts[:logger] = Chef::Log.with_child(subsystem: "net/ssh") if Chef::Log.level == :trace unless config[:host_key_verify] - opts[:verify_host_key] = false + opts[:verify_host_key] = :never opts[:user_known_hosts_file] = "/dev/null" end if ssh_config[:keepalive] -- cgit v1.2.1