Check for /etc/exports before pruning

This commit is contained in:
Mitchell Hashimoto 2012-01-13 20:38:20 -08:00
parent 8f5232c5cf
commit f1d5fe27ab
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,8 @@ module Vagrant
end end
def nfs_prune(valid_ids) def nfs_prune(valid_ids)
return if !File.exist?("/etc/exports")
@logger.info("Pruning invalid NFS entries...") @logger.info("Pruning invalid NFS entries...")
output = false output = false

View File

@ -56,6 +56,8 @@ module Vagrant
end end
def nfs_prune(valid_ids) def nfs_prune(valid_ids)
return if !File.exist?("/etc/exports")
@logger.info("Pruning invalid NFS entries...") @logger.info("Pruning invalid NFS entries...")
output = false output = false