lib/serverspec/setup.rb in serverspec-2.8.0 vs lib/serverspec/setup.rb in serverspec-2.8.1

- old
+ new

@@ -273,10 +273,11 @@ <%- if @vagrant -%> `vagrant up #{host}` config = Tempfile.new('', Dir.tmpdir) -`vagrant ssh-config #{host} > #{config.path}` +config.write(`vagrant ssh-config #{host}`) +config.close options = Net::SSH::Config.for(host, [config.path]) <%- else -%> options = Net::SSH::Config.for(host) <%- end -%>