don't update non-running machines

fix equality comparison
This commit is contained in:
Austin Parker 2016-07-05 12:01:19 -04:00
parent 8e34333553
commit 076cca4af7
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ module VagrantPlugins
@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