guests/linux: up the amount of retries for NFS mounts

This commit is contained in:
Mitchell Hashimoto 2013-12-18 08:38:31 -08:00
parent 825e857256
commit 489506ff83
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module VagrantPlugins
end end
mount_command = "mount -o '#{mount_opts.join(",")}' #{ip}:'#{hostpath}' #{expanded_guest_path}" mount_command = "mount -o '#{mount_opts.join(",")}' #{ip}:'#{hostpath}' #{expanded_guest_path}"
retryable(:on => Vagrant::Errors::LinuxNFSMountFailed, :tries => 5, :sleep => 3) do retryable(:on => Vagrant::Errors::LinuxNFSMountFailed, :tries => 8, :sleep => 3) do
machine.communicate.sudo(mount_command, machine.communicate.sudo(mount_command,
:error_class => Vagrant::Errors::LinuxNFSMountFailed) :error_class => Vagrant::Errors::LinuxNFSMountFailed)
end end