From 9e27355d0e88374fda40ae6775f9b2616c1f54bb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 7 Jan 2011 01:22:52 -0800 Subject: [PATCH] Fix weird exception from autoloading Vagrant::SSH --- lib/vagrant.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 9e4b8ce16..67fc7644a 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -15,7 +15,6 @@ module Vagrant autoload :Errors, 'vagrant/errors' autoload :Hosts, 'vagrant/hosts' autoload :Plugin, 'vagrant/plugin' - autoload :SSH, 'vagrant/ssh' autoload :TestHelpers, 'vagrant/test_helpers' autoload :UI, 'vagrant/ui' autoload :Util, 'vagrant/util' @@ -31,9 +30,12 @@ end # Default I18n to load the en locale I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root) -# Load the things which must be loaded before anything else +# Load the things which must be loaded before anything else. Note that +# I'm not sure why 'vagrant/ssh' must be loaded. But if I don't, I get +# a very scary "unsupported cipher" error from net-ssh for no apparent reason. require 'vagrant/command' require 'vagrant/provisioners' require 'vagrant/systems' +require 'vagrant/ssh' Vagrant::Action.builtin! Vagrant::Plugin.load!