diff --git a/lib/vagrant-hostmanager/action/update_all.rb b/lib/vagrant-hostmanager/action/update_all.rb index 9abf629..9d5e026 100644 --- a/lib/vagrant-hostmanager/action/update_all.rb +++ b/lib/vagrant-hostmanager/action/update_all.rb @@ -25,7 +25,7 @@ module VagrantPlugins return @app.call(env) if @machine.state.id != :running && env[:machine_action] == :suspend # check config to see if the hosts file should be update automatically - return @app.call(env) unless @machine.config.hostmanager.enabled? + return @app.call(env) unless @global_env.config_global.hostmanager.enabled? @logger.info 'Updating /etc/hosts file automatically' @app.call(env)