run hostmanager before provisioners on up action

Fixes #73.
This commit is contained in:
Paulo Bittencourt 2014-05-25 00:42:01 -04:00
parent fc1fde759d
commit 4024856005
2 changed files with 1 additions and 3 deletions

View File

@ -23,8 +23,6 @@ module VagrantPlugins
end
def call(env)
# skip if machine is already active on up action
return @app.call(env) if @machine.id && env[:machine_action] == :up
# skip if machine is not active on destroy action
return @app.call(env) if !@machine.id && env[:machine_action] == :destroy

View File

@ -17,7 +17,7 @@ module VagrantPlugins
end
action_hook(:hostmanager, :machine_action_up) do |hook|
hook.prepend(Action.update_all)
hook.after(Vagrant::Action::Builtin::Provision, Action.update_all)
end
action_hook(:hostmanager, :machine_action_destroy) do |hook|