provisioners/puppet: just quiet the NFS errors for Puppet [GH-5456]

This commit is contained in:
Mitchell Hashimoto 2015-07-06 11:19:32 -06:00
parent d03b1f6930
commit fec6ef11c8
2 changed files with 2 additions and 1 deletions

View File

@ -620,7 +620,7 @@ module VagrantPlugins
path: options[:hostpath])
end
if options[:type] == :nfs
if options[:type] == :nfs && !options[:nfs__quiet]
if options[:owner] || options[:group]
# Owner/group don't work with NFS
errors << I18n.t("vagrant.config.vm.shared_folder_nfs_owner_group",

View File

@ -32,6 +32,7 @@ module VagrantPlugins
folder_opts[:type] = @config.synced_folder_type if @config.synced_folder_type
folder_opts[:owner] = "root" if !@config.synced_folder_type
folder_opts[:args] = @config.synced_folder_args if @config.synced_folder_args
folder_opts[:nfs__quiet] = true
if @config.environment_path.is_a?(Array)
# Share the environments directory with the guest