From d608e0bdfd7a53c275af2e2bc3bc6a9cf90713ee Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 9 Apr 2014 11:36:52 -0700 Subject: [PATCH] Eager load WinRM /cc @sneal - How is this? It is dirty, but at least then it doesn't have a global performance impact on Vagrant if you're not using WinRM --- lib/vagrant/machine.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/vagrant/machine.rb b/lib/vagrant/machine.rb index 83a7f4f78..53e48050f 100644 --- a/lib/vagrant/machine.rb +++ b/lib/vagrant/machine.rb @@ -128,6 +128,13 @@ module Vagrant # state we setup on this machine. @provider = provider_cls.new(self) @provider._initialize(@provider_name, self) + + # If we're using WinRM, we eager load the plugin because of + # GH-3390 + if @config.vm.communicator == :winrm + @logger.debug("Eager loading WinRM communicator to avoid GH-3390") + communiate + end end # This calls an action on the provider. The provider may or may not