Properly fix GH-96

This commit is contained in:
Fabio Rehm 2014-04-06 21:47:24 -03:00
parent 20373aa0d7
commit 12f121e6e4
2 changed files with 3 additions and 3 deletions

View file

@ -11,11 +11,11 @@ module VagrantPlugins
def install def install
if guest.capability?(:apt_cacher_dir) if guest.capability?(:apt_cacher_dir)
if guest_path = guest.capability(:apt_cacher_dir) if guest_path = guest.capability(:apt_cacher_dir)
synced_folder_type = machine.config.cache.synced_folder_opts[:type] synced_folder_type = (machine.config.cache.synced_folder_opts || {})[:type]
if synced_folder_type && synced_folder_type.to_sym == :nfs if synced_folder_type && synced_folder_type.to_sym == :nfs
symlink(guest_path) symlink(guest_path)
else else
@env[:ui].info I18n.t('vagrant_cachier.nfs_required', bucket: 'apt-cacher') @env[:ui].warn I18n.t('vagrant_cachier.nfs_required', bucket: 'apt-cacher')
end end
end end
else else