parent
fc1fde759d
commit
4024856005
|
@ -23,8 +23,6 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
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
|
# skip if machine is not active on destroy action
|
||||||
return @app.call(env) if !@machine.id && env[:machine_action] == :destroy
|
return @app.call(env) if !@machine.id && env[:machine_action] == :destroy
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
action_hook(:hostmanager, :machine_action_up) do |hook|
|
action_hook(:hostmanager, :machine_action_up) do |hook|
|
||||||
hook.prepend(Action.update_all)
|
hook.after(Vagrant::Action::Builtin::Provision, Action.update_all)
|
||||||
end
|
end
|
||||||
|
|
||||||
action_hook(:hostmanager, :machine_action_destroy) do |hook|
|
action_hook(:hostmanager, :machine_action_destroy) do |hook|
|
||||||
|
|
Loading…
Reference in New Issue