From 0cbf6970fc683297777d16321fe34f9971ef446b Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 14 Mar 2018 15:57:21 -0700 Subject: [PATCH] Update config class setting --- plugins/kernel_v2/config/vm_trigger.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/kernel_v2/config/vm_trigger.rb b/plugins/kernel_v2/config/vm_trigger.rb index 870d17e0a..2570a4392 100644 --- a/plugins/kernel_v2/config/vm_trigger.rb +++ b/plugins/kernel_v2/config/vm_trigger.rb @@ -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"