Use machine UI when processing actions

This commit is contained in:
Chris Roberts 2022-02-25 15:58:37 -08:00 committed by Paul Hinze
parent 535f82e192
commit f457cbb72b
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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