Merge pull request #35 from jeremiahsnapp/check_global_enabled
Check global.enabled instead of machine.enabled
This commit is contained in:
commit
4136b1ee7b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue