core: don't delete state data if id=nil [GH-2201]

This commit is contained in:
Mitchell Hashimoto 2013-09-16 20:56:14 -07:00
parent b9801f44a0
commit 1a780bf5b2
2 changed files with 2 additions and 10 deletions

View File

@ -17,6 +17,8 @@ BUG FIXES:
- core: Increase timeout for individual SSH connection to 60 seconds. [GH-2163]
- core: Call realpath after creating directory so NFS directory creation
works. [GH-2196]
- core: Don't try to be clever about deleting the machine state
directory anymore. Manually done in destroy actions. [GH-2201]
- guests/linux: Try `id -g` in addition to `getent` for mounting
VirtualBox shared folders [GH-2197]
- hosts/arch: NFS exporting works properly, no exceptions. [GH-2161]

View File

@ -207,16 +207,6 @@ module Vagrant
else
# Delete the file, since the machine is now destroyed
id_file.delete if id_file.file?
# Delete the entire data directory contents since all state
# associated with the VM is now gone.
@data_dir.children.each do |child|
begin
child.rmtree
rescue Errno::EACCES
@logger.info("EACCESS deleting file: #{child}")
end
end
end
# Store the ID locally