`vagrant provision` checks for inaccessible VMs

This commit is contained in:
Mitchell Hashimoto 2011-08-28 20:34:59 -07:00
parent 327a6f9d94
commit 82d6d5357b
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ module Vagrant
def execute
target_vms.each do |vm|
if vm.created?
if vm.vm.running?
if !vm.vm.accessible?
raise Errors::VMInaccessible
elsif vm.vm.running?
vm.provision
else
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running")