diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index c2ec4c06f..f6680b6d3 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -168,7 +168,7 @@ module Vagrant # If this isn't a directory then it isn't a machine next if !name_folder.directory? - name = name_folder.basename.to_s + name = name_folder.basename.to_s.to_sym name_folder.children(true).each do |provider_folder| # If this isn't a directory then it isn't a provider next if !provider_folder.directory? diff --git a/test/unit/vagrant/environment_test.rb b/test/unit/vagrant/environment_test.rb index f779fb6e9..de6a66623 100644 --- a/test/unit/vagrant/environment_test.rb +++ b/test/unit/vagrant/environment_test.rb @@ -43,7 +43,7 @@ describe Vagrant::Environment do machine_bar = machines.join("bar/virtualbox") machine_bar.mkpath - instance.active_machines.should == [["foo", :virtualbox]] + instance.active_machines.should == [[:foo, :virtualbox]] end end