diff --git a/lib/vagrant/hosts/bsd.rb b/lib/vagrant/hosts/bsd.rb index 7e1326408..4a13ef51b 100644 --- a/lib/vagrant/hosts/bsd.rb +++ b/lib/vagrant/hosts/bsd.rb @@ -58,6 +58,8 @@ module Vagrant end def nfs_prune(valid_ids) + return if !File.exist?("/etc/exports") + @logger.info("Pruning invalid NFS entries...") output = false diff --git a/lib/vagrant/hosts/linux.rb b/lib/vagrant/hosts/linux.rb index 5b03db77b..c179fd1d4 100644 --- a/lib/vagrant/hosts/linux.rb +++ b/lib/vagrant/hosts/linux.rb @@ -56,6 +56,8 @@ module Vagrant end def nfs_prune(valid_ids) + return if !File.exist?("/etc/exports") + @logger.info("Pruning invalid NFS entries...") output = false