Skip bucket auto detection in case the bucket can't be auto detected [GH-94]

This commit is contained in:
Fabio Rehm 2014-04-06 21:25:58 -03:00
parent 2a17bc4f1d
commit 8d48dacf24

View file

@ -8,7 +8,7 @@ module VagrantPlugins
def self.auto_detect(env)
@buckets.each do |bucket|
if env[:machine].guest.capability?(bucket.capability)
if bucket.respond_to?(:capability) && env[:machine].guest.capability?(bucket.capability)
env[:machine].config.cache.enable bucket.bucket_name
end
end