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:
parent
25ea67a9f7
commit
968499bd5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue