core: handle EACCES when cleaning up .vagrant dir
This commit is contained in:
parent
77036c7eea
commit
90289544d4
|
@ -8,6 +8,8 @@ BUG FIXES:
|
|||
Vagrantfile name. [GH-2130]
|
||||
- core: Fix an issue where the data directory would be deleted too
|
||||
quickly in a multi-VM environment.
|
||||
- core: Handle the case where we get an EACCES cleaning up the .vagrant
|
||||
directory.
|
||||
- provisioners/chef: Work even with restrictive umask on user. [GH-2121]
|
||||
- provisioners/chef: Fix environment validation to be less restrictive.
|
||||
- provisioners/puppet: No more "shared folders cannot be found" error.
|
||||
|
|
|
@ -211,7 +211,11 @@ module Vagrant
|
|||
# Delete the entire data directory contents since all state
|
||||
# associated with the VM is now gone.
|
||||
@data_dir.children.each do |child|
|
||||
child.rmtree
|
||||
begin
|
||||
child.rmtree
|
||||
rescue Errno::EACCES
|
||||
@logger.info("EACCESS deleting file: #{child}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue