Check for /etc/exports before pruning
This commit is contained in:
parent
8f5232c5cf
commit
f1d5fe27ab
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue