Trigger cleanup

This commit is contained in:
Brian Cain 2018-04-02 13:23:57 -07:00
parent 693eb2fbbb
commit 767a315393
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
require 'fileutils'
require 'log4r'
require 'shellwords'
require 'fileutils'
require "vagrant/util/subprocess"
require Vagrant.source_root.join("plugins/provisioners/shell/provisioner")
require "vagrant/util/subprocess"
module Vagrant
module Plugin

View File

@ -180,9 +180,10 @@ module VagrantPlugins
end
if !@only_on.nil?
if @only_on.all? { |o| !o.is_a?(String) || !o.is_a?(Regexp) }
errors << I18n.t("vagrant.config.triggers.only_on_bad_type")
end
# this check isn't quite right...
#if @only_on.all? { |o| !o.is_a?(String) || !o.is_a?(Regexp) }
# errors << I18n.t("vagrant.config.triggers.only_on_bad_type")
#end
end
errors