communicators/ssh: if insert_key is false, don't insert a key
This commit is contained in:
parent
92413d0393
commit
4c6957b5cf
|
@ -52,7 +52,7 @@ module VagrantPlugins
|
|||
# If we're already attempting to switch out the SSH key, then
|
||||
# just return that we're ready (for Machine#guest).
|
||||
@lock.synchronize do
|
||||
return true if @inserted_key
|
||||
return true if @inserted_key || !@machine.config.ssh.insert_key
|
||||
@inserted_key = true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue