From 968499bd5c7fd94302ee55780c1135c2334243dd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 8 Jan 2011 21:27:44 -0800 Subject: [PATCH] Hash#select returns an array on 1.8.7 and a hash on 1.9.2. Make sure it is always a Hash. --- lib/vagrant/action/vm/nfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/vm/nfs.rb b/lib/vagrant/action/vm/nfs.rb index e543b8556..429f77a73 100644 --- a/lib/vagrant/action/vm/nfs.rb +++ b/lib/vagrant/action/vm/nfs.rb @@ -115,7 +115,7 @@ module Vagrant # Only mount the folders which have a guest path specified am_folders = folders.select { |name, folder| folder[:guestpath] } - @env["vm"].system.mount_nfs(host_ip, am_folders) + @env["vm"].system.mount_nfs(host_ip, Hash[am_folders]) end # Returns the IP address of the first host only network adapter