Trigger cleanup
This commit is contained in:
parent
693eb2fbbb
commit
767a315393
|
@ -1,9 +1,9 @@
|
||||||
|
require 'fileutils'
|
||||||
require 'log4r'
|
require 'log4r'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
require 'fileutils'
|
|
||||||
|
|
||||||
require "vagrant/util/subprocess"
|
|
||||||
require Vagrant.source_root.join("plugins/provisioners/shell/provisioner")
|
require Vagrant.source_root.join("plugins/provisioners/shell/provisioner")
|
||||||
|
require "vagrant/util/subprocess"
|
||||||
|
|
||||||
module Vagrant
|
module Vagrant
|
||||||
module Plugin
|
module Plugin
|
||||||
|
|
|
@ -180,9 +180,10 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
if !@only_on.nil?
|
if !@only_on.nil?
|
||||||
if @only_on.all? { |o| !o.is_a?(String) || !o.is_a?(Regexp) }
|
# this check isn't quite right...
|
||||||
errors << I18n.t("vagrant.config.triggers.only_on_bad_type")
|
#if @only_on.all? { |o| !o.is_a?(String) || !o.is_a?(Regexp) }
|
||||||
end
|
# errors << I18n.t("vagrant.config.triggers.only_on_bad_type")
|
||||||
|
#end
|
||||||
end
|
end
|
||||||
|
|
||||||
errors
|
errors
|
||||||
|
|
Loading…
Reference in New Issue