Hash#select returns an array on 1.8.7 and a hash on 1.9.2. Make sure it is always a Hash.

This commit is contained in:
Mitchell Hashimoto 2011-01-08 21:27:44 -08:00
parent 25ea67a9f7
commit 968499bd5c
1 changed files with 1 additions and 1 deletions

View File

@ -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