update CHANGELOG

This commit is contained in:
Mitchell Hashimoto 2014-10-23 09:15:47 -07:00
parent 381f1332c8
commit 5036d16461
3 changed files with 4 additions and 18 deletions

View File

@ -15,6 +15,7 @@ BUG FIXES:
- core: On a graceful halt, force halt if capability "insert public key"
is missing. [GH-4684]
- core: Don't share `/vagrant` if any "." folder is shared. [GH-4675]
- core: Fix SSH private key permissions more aggressively. [GH-4670]
- commands/box: `--cert` flag works properly. [GH-4691]
- command/docker-logs: Won't crash if container is removed. [GH-3990]
- command/docker-run: Synced folders will be attached properly. [GH-3873]

View File

@ -391,9 +391,6 @@ module Vagrant
#
# @return [Hash] SSH information.
def ssh_info
return @ssh_info unless @ssh_info.nil?
# First, ask the provider for their information. If the provider
# returns nil, then the machine is simply not ready for SSH, and
# we return nil as well.
@ -461,8 +458,7 @@ module Vagrant
end
end
# Memoize the final compiled SSH info data and return it
@ssh_info = info
info
end
# Returns the state of this machine. The state is queried from the

View File

@ -586,17 +586,6 @@ describe Vagrant::Machine do
instance.ssh_info
end
# It is not possible to test the memoization of a Ruby Hash with object equality,
# but we can verify that some code of ssh_info method is not executed again.
it "should check and try to fix the permissions of the private key file only once" do
provider_ssh_info[:private_key_path] = nil
instance.config.ssh.private_key_path = nil
expect(ssh_klass).to receive(:check_key_permissions).once.with(Pathname.new(instance.env.default_private_key_path.to_s))
instance.ssh_info
instance.ssh_info
end
context "expanding path relative to the root path" do
it "should with the provider key path" do
provider_ssh_info[:private_key_path] = "~/foo"