lib/kitchen/transport/ssh.rb in test-kitchen-1.15.0 vs lib/kitchen/transport/ssh.rb in test-kitchen-1.16.0

- old
+ new

@@ -414,9 +414,13 @@ opts[:keys_only] = true opts[:keys] = Array(data[:ssh_key]) opts[:auth_methods] = ["publickey"] end + if data[:ssh_key_only] + opts[:auth_methods] = ["publickey"] + end + opts[:password] = data[:password] if data.key?(:password) opts[:forward_agent] = data[:forward_agent] if data.key?(:forward_agent) opts[:verbose] = data[:verbose].to_sym if data.key?(:verbose) opts