communicators/ssh: if insert_key is false, don't insert a key

This commit is contained in:
Mitchell Hashimoto 2014-01-03 11:29:44 -08:00
parent 92413d0393
commit 4c6957b5cf
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module VagrantPlugins
# If we're already attempting to switch out the SSH key, then # If we're already attempting to switch out the SSH key, then
# just return that we're ready (for Machine#guest). # just return that we're ready (for Machine#guest).
@lock.synchronize do @lock.synchronize do
return true if @inserted_key return true if @inserted_key || !@machine.config.ssh.insert_key
@inserted_key = true @inserted_key = true
end end