Properly filter triggers

This commit is contained in:
Brian Cain 2018-03-29 14:04:50 -07:00
parent 975b8e774c
commit 59965f4fd6
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ module Vagrant
filter.each do |trigger|
index = nil
if !trigger.only_on.nil?
index = trigger.only_on.index { |i| i.match?(guest_name) }
trigger.only_on.each do |o|
if o.match?(guest_name)
index = triggers.index(trigger)
end
end
end
if !index.nil?