provisioners/puppet: sudo test for folders for umask

This commit is contained in:
Mitchell Hashimoto 2013-09-05 16:24:30 -07:00
parent 592a800f84
commit e05cca7ed4
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ BUG FIXES:
- provisioners/chef: Work even with restrictive umask on user. [GH-2121]
- provisioners/puppet: No more "shared folders cannot be found" error.
[GH-2134]
- provisioners/puppet: Work with restrictive umask on user by testing
for folders with sudo. [GH-2121]
## 1.3.0 (September 5, 2013)

View File

@ -135,7 +135,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 PuppetError, :missing_shared_folders
end
end