Skip to content

Commit 076cca4

Browse files
author
Austin Parker
committed
don't update non-running machines
fix equality comparison
1 parent 8e34333 commit 076cca4

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)