For hooks, put the environment in the action env
This commit is contained in:
parent
3b2a82003e
commit
60a1b035e7
|
@ -246,7 +246,10 @@ module Vagrant
|
||||||
def hook(name)
|
def hook(name)
|
||||||
@logger.info("Running hook: #{name}")
|
@logger.info("Running hook: #{name}")
|
||||||
callable = Action::Builder.new
|
callable = Action::Builder.new
|
||||||
action_runner.run(callable, :action_name => name)
|
action_runner.run(
|
||||||
|
callable,
|
||||||
|
:action_name => name,
|
||||||
|
:env => self)
|
||||||
end
|
end
|
||||||
|
|
||||||
# This returns a machine with the proper provider for this environment.
|
# This returns a machine with the proper provider for this environment.
|
||||||
|
|
Loading…
Reference in New Issue