diff --git a/lib/vagrant-hostsupdater/plugin.rb b/lib/vagrant-hostsupdater/plugin.rb index 428d647..757cb6b 100644 --- a/lib/vagrant-hostsupdater/plugin.rb +++ b/lib/vagrant-hostsupdater/plugin.rb @@ -18,7 +18,7 @@ class Plugin < Vagrant.plugin('2') action_hook(:hostsupdater, :machine_action_up) do |hook| hook.prepend(Action::RemoveHosts) - hook.after(Action::RemoveHosts, Action::UpdateHosts) + hook.after(Vagrant::Action::Builtin::SetHostname, Action::UpdateHosts) end action_hook(:hostsupdater, :machine_action_provision) do |hook| diff --git a/lib/vagrant-hostsupdater/version.rb b/lib/vagrant-hostsupdater/version.rb index 8ec37e8..2b4a72e 100644 --- a/lib/vagrant-hostsupdater/version.rb +++ b/lib/vagrant-hostsupdater/version.rb @@ -1,5 +1,5 @@ module VagrantPlugins module HostsUpdater - VERSION = "1.0.0" + VERSION = '1.0.1' end end