From f457cbb72bfa2215d0585244c1e135d613dcf323 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 25 Feb 2022 15:58:37 -0800 Subject: [PATCH] Use machine UI when processing actions --- plugins/commands/serve/service/provider_service.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/commands/serve/service/provider_service.rb b/plugins/commands/serve/service/provider_service.rb index 02e206a7a..6f712806e 100644 --- a/plugins/commands/serve/service/provider_service.rb +++ b/plugins/commands/serve/service/provider_service.rb @@ -130,11 +130,12 @@ module VagrantPlugins extra_env = {} end # Run the action with the action runner on the environment - env = {ui: machine.ui}.merge(extra_env).merge( + env = extra_env.merge( raw_action_name: name, action_name: "machine_action_#{name}".to_sym, machine: machine, - machine_action: name + machine_action: name, + ui: machine.ui, ) machine.env.action_runner.run(callable, env) end