Merge pull request #35 from jeremiahsnapp/check_global_enabled

Check global.enabled instead of machine.enabled
This commit is contained in:
Shawn Dahlen 2013-08-22 13:46:19 -07:00
commit 4136b1ee7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)