Merge pull request #202 from austinlparker/dont-update-down-guests

Don't attempt to update machines that are not running during vagrant up
This commit is contained in:
Seth Reeser 2016-07-13 12:00:49 -04:00 committed by GitHub
commit 90bd20098b
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