parent
fc1fde759d
commit
4024856005
|
@ -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
|
||||
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue