From d95567e4c7b0d416038b3b028d3aa683eeeea76c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 16 Sep 2013 20:56:28 -0700 Subject: [PATCH] Revert "core: better cleanup of ".vagrant"" [GH-2201] This reverts commit 5b42994406f977907fccfdce6e85f5d32d9cd84d. --- lib/vagrant/environment.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 04b117ba2..927bbece2 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -180,18 +180,12 @@ module Vagrant # If this isn't a directory then it isn't a provider next if !provider_folder.directory? - # If this machine doesn't have an ID, then remove the - # directory because it shouldn't exist, and ignore. - if !provider_folder.join("id").file? - provider_folder.rmtree - next - end + # If this machine doesn't have an ID, then ignore + next if !provider_folder.join("id").file? provider = provider_folder.basename.to_s.to_sym result << [name, provider] end - - name_folder.rmtree if name_folder.children.empty? end # Return the results