Permalink
Browse files

Hacky fix for when the VM has no driver and needs to be reloaded.

  • Loading branch information...
benburkert committed Feb 23, 2012
1 parent 2555088 commit 8591e2197f78bcce1917c0aaaba3525983a9e400
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/vagrant/action/vm/import.rb
@@ -9,6 +9,8 @@ def initialize(app, env)
def call(env)
env[:ui].info I18n.t("vagrant.actions.vm.import.importing", :name => env[:vm].box.name)
+ env.reload! if env[:vm].nil? # I have no idea why this is necessary, but it is.
+
# Import the virtual machine
ovf_file = env[:vm].box.directory.join("box.ovf").to_s
env[:vm].uuid = env[:vm].driver.import(ovf_file) do |progress|

0 comments on commit 8591e21

Please sign in to comment.