From e752878de93b6967fd8aa0fd322af12aa7a2cbb8 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 16 Mar 2018 14:06:39 -0700 Subject: [PATCH] Update finalize method for run and run_remote objects --- plugins/kernel_v2/config/vm_trigger.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/kernel_v2/config/vm_trigger.rb b/plugins/kernel_v2/config/vm_trigger.rb index 5d7b3481b..9c45fbf8a 100644 --- a/plugins/kernel_v2/config/vm_trigger.rb +++ b/plugins/kernel_v2/config/vm_trigger.rb @@ -98,17 +98,19 @@ module VagrantPlugins # these values are expected to always be an Array internally, # but can be set as a single String or Symbol # - # map to all be strings + # Guests are stored internally as strings if !@only_on.nil? @only_on = Array(@only_on) + @only_on.map { |o| o.to_s } end + # Commands must be stored internally as symbols if !@ignore.nil? - @ignore = @ignore.to_sym if @ignore.is_a?(String) @ignore = Array(@ignore) + @ignore.map { |i| i.to_sym } end - # Convert @run and @run_remote to be a "Shell provisioner" + # Convert @run and @run_remote to be a "Shell provisioner" config if @run new_run = VagrantPlugins::Shell::Config.new() new_run.set_options(@run)