provisioners/chef: work with restrictive umask [GH-2121]

This commit is contained in:
Mitchell Hashimoto 2013-09-05 16:12:56 -07:00
parent 95aba27e59
commit 592a800f84
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ BUG FIXES:
Vagrantfile can cause errors.
- core: `VAGRANT_VAGRANTFILE` env var only applies to the project
Vagrantfile name. [GH-2130]
- provisioners/chef: Work even with restrictive umask on user. [GH-2121]
- provisioners/puppet: No more "shared folders cannot be found" error.
[GH-2134]

View File

@ -173,7 +173,7 @@ module VagrantPlugins
def verify_shared_folders(folders)
folders.each do |folder|
@logger.debug("Checking for shared folder: #{folder}")
if !@machine.communicate.test("test -d #{folder}")
if !@machine.communicate.test("test -d #{folder}", sudo: true)
raise ChefError, :missing_shared_folders
end
end