Skip to content

Commit

Permalink
Merge pull request #202 from austinlparker/dont-update-down-guests
Browse files Browse the repository at this point in the history
Don't attempt to update machines that are not running during vagrant up
  • Loading branch information
seth-reeser committed Jul 13, 2016
2 parents bf08092 + 076cca4 commit 90bd200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/vagrant-hostmanager/action/update_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def call(env)
@global_env.active_machines.each do |name, p|
if p == @provider
machine = @global_env.machine(name, p)
@updater.update_guest(machine)
state = machine.state
if state.short_description.eql? 'running'
@updater.update_guest(machine)
end
end
end
end
Expand Down

0 comments on commit 90bd200

Please sign in to comment.