Skip to content

Commit

Permalink
Merge pull request #35 from jeremiahsnapp/check_global_enabled
Browse files Browse the repository at this point in the history
Check global.enabled instead of machine.enabled
  • Loading branch information
smdahlen committed Aug 22, 2013
2 parents f189fb6 + f8baff2 commit 4136b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostmanager/action/update_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def call(env)
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)
Expand Down

0 comments on commit 4136b1e

Please sign in to comment.