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

- old
+ new

@@ -105,9 +105,15 @@ # This object is responsible for carrying out the actions on the remote # host such as executing commands, transferring files, etc. # # @author Fletcher Nichol <fnichol@nichol.ca> class Connection < Kitchen::Transport::Base::Connection + # (see Base::Connection#initialize) + def initialize(config = {}) + super(config) + @session = nil + end + # (see Base::Connection#close) def close return if @session.nil? logger.debug("[SSH] closing connection to #{self}")