Update config class setting

This commit is contained in:
Brian Cain 2018-03-14 15:57:21 -07:00
parent 607368a66c
commit 0cbf6970fc
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,10 @@ module VagrantPlugins
class VagrantConfigTrigger < Vagrant.plugin("2", :config)
DEFAULT_ON_ERROR = :halt
#-------------------------------------------------------------------
# Config class for a given Trigger
#-------------------------------------------------------------------
# Internal unique name for this trigger
#
# Note: This is for internal use only.
@ -79,10 +83,6 @@ module VagrantPlugins
@command = command.to_sym
end
#-------------------------------------------------------------------
# Internal methods, don't call these.
#-------------------------------------------------------------------
def finalize!
# Ensure all config options are set to nil if untouched by user
@name = nil if @name == UNSET_VALUE
@ -103,7 +103,8 @@ module VagrantPlugins
end
if !@ignore.nil?
@ignore = Array(@ignore.to_sym)
@ignore = @ignore.to_sym if @ignore.is_a?(String)
@ignore = Array(@ignore)
end
# Convert @run and @run_remote to be a "Shell provisioner"