From 4c6957b5cf14d9c9afe51e553c274aac7b4a84c6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 Jan 2014 11:29:44 -0800 Subject: [PATCH] communicators/ssh: if insert_key is false, don't insert a key --- plugins/communicators/ssh/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 681ce7fde..0a9845436 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -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