Permalink
Browse files

[master] Only reload the vm if the driver is nil.

  • Loading branch information...
1 parent 8591e21 commit 66284c3460fbb085142f9a9b3c035d5f8e9e7259 @sbryant sbryant committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/vagrant/action/vm/import.rb
@@ -9,7 +9,7 @@ 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.
+ env[:vm].reload! if env[:vm].driver.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

0 comments on commit 66284c3

Please sign in to comment.