Skip to content

Commit 90bd200

Browse files
authored
Merge pull request #202 from austinlparker/dont-update-down-guests
Don't attempt to update machines that are not running during vagrant up
2 parents bf08092 + 076cca4 commit 90bd200

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/vagrant-hostmanager/action/update_all.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def call(env)
3232
@global_env.active_machines.each do |name, p|
3333
if p == @provider
3434
machine = @global_env.machine(name, p)
35-
@updater.update_guest(machine)
35+
state = machine.state
36+
if state.short_description.eql? 'running'
37+
@updater.update_guest(machine)
38+
end
3639
end
3740
end
3841
end

0 commit comments

Comments
 (0)