Created
March 10, 2010 04:28
-
-
Save ewencp/327522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 274a96b92f90e6b8367463bb777617cd2da33fa9 Mon Sep 17 00:00:00 2001 | |
From: Ewen Cheslack-Postava <ewencp@cs.stanford.edu> | |
Date: Tue, 9 Mar 2010 20:19:26 -0800 | |
Subject: [PATCH] Raise an exception if VM import fails. | |
--- | |
lib/vagrant/actions/vm/import.rb | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/lib/vagrant/actions/vm/import.rb b/lib/vagrant/actions/vm/import.rb | |
index 56a8e8d..d096cae 100644 | |
--- a/lib/vagrant/actions/vm/import.rb | |
+++ b/lib/vagrant/actions/vm/import.rb | |
@@ -8,6 +8,7 @@ module Vagrant | |
logger.info "Importing base VM (#{Vagrant::Env.box.ovf_file})..." | |
# Use the first argument passed to the action | |
@runner.vm = VirtualBox::VM.import(Vagrant::Env.box.ovf_file) | |
+ raise ActionException.new("Couldn't import VM") unless @runner.vm | |
end | |
end | |
end | |
-- | |
1.6.3.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment