Trigger cleanup
This commit is contained in:
parent
693eb2fbbb
commit
767a315393
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue