From daeb7ea726799f856716fa07c46c562506b2edbc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 11 Dec 2011 23:26:04 -0800 Subject: [PATCH] Send new `id` element into NFS methods for hosts --- lib/vagrant/action/vm/nfs.rb | 2 +- lib/vagrant/action/vm/nfs_helpers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/vm/nfs.rb b/lib/vagrant/action/vm/nfs.rb index 0c90b4741..f06a62745 100644 --- a/lib/vagrant/action/vm/nfs.rb +++ b/lib/vagrant/action/vm/nfs.rb @@ -106,7 +106,7 @@ module Vagrant def export_folders @env[:ui].info I18n.t("vagrant.actions.vm.nfs.exporting") - @env[:host].nfs_export(guest_ip, folders) + @env[:host].nfs_export(@env[:vm].uuid, guest_ip, folders) end # Uses the system class to mount the NFS folders. diff --git a/lib/vagrant/action/vm/nfs_helpers.rb b/lib/vagrant/action/vm/nfs_helpers.rb index a4bada6e9..6d48fb1ae 100644 --- a/lib/vagrant/action/vm/nfs_helpers.rb +++ b/lib/vagrant/action/vm/nfs_helpers.rb @@ -3,7 +3,7 @@ module Vagrant module VM module NFSHelpers def clear_nfs_exports(env) - env[:host].nfs_cleanup if env[:host] + env[:host].nfs_cleanup(env[:vm].uuid) if env[:host] end end end