From a30a92bb4fc4b6359fa3546288f3a7a38ae84000 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 30 Dec 2012 11:51:22 -1000 Subject: [PATCH] active_machines should return name as a symbol --- lib/vagrant/environment.rb | 2 +- test/unit/vagrant/environment_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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