Permalink
Browse files

`vagrant provision` checks for inaccessible VMs

  • Loading branch information...
1 parent 327a6f9 commit 82d6d5357bd39a323597df3cbe0d074da003ccd8 @mitchellh mitchellh committed Aug 29, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/vagrant/command/provision.rb
@@ -6,7 +6,9 @@ class ProvisionCommand < NamedBase
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")

0 comments on commit 82d6d53

Please sign in to comment.