From 2cf864e95bbbbaf14f0f68f88b606ff0ab1dc1a8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 28 Dec 2013 13:48:00 -0700 Subject: [PATCH] hosts/bsd: check exports only if exports file exists [GH-2714] --- CHANGELOG.md | 2 ++ plugins/hosts/bsd/host.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9e6df0f..c6d021e93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ BUG FIXES: registered plugin name [GH-2617] - core: Fix exception if an EOFError was somehow raised by Ruby while checking a box checksum. [GH-2716] + - hosts/bsd: Only run `nfsd checkexports` if there is an exports file. + [GH-2714] ## 1.4.1 (December 18, 2013) diff --git a/plugins/hosts/bsd/host.rb b/plugins/hosts/bsd/host.rb index c2484a1de..f67f8b801 100644 --- a/plugins/hosts/bsd/host.rb +++ b/plugins/hosts/bsd/host.rb @@ -36,7 +36,7 @@ module VagrantPlugins end def nfs_export(id, ips, folders) - nfs_checkexports! + nfs_checkexports! if File.file?("/etc/exports") # We need to build up mapping of directories that are enclosed # within each other because the exports file has to have subdirectories