From e0ecda961cc95e1dedd0c775e436337959d0bc86 Mon Sep 17 00:00:00 2001 From: John Julien Date: Wed, 9 Mar 2016 19:33:47 -0600 Subject: [PATCH] Fixed linked clone failure when master VM is missing If the master VM is removed, but the master_id file exists, Vagrant would still attempt to clone using the master_id rather then importing re-importing first. Fixes #6742 --- plugins/providers/virtualbox/action/import_master.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/providers/virtualbox/action/import_master.rb b/plugins/providers/virtualbox/action/import_master.rb index ae8f52f32..c1bda5b01 100644 --- a/plugins/providers/virtualbox/action/import_master.rb +++ b/plugins/providers/virtualbox/action/import_master.rb @@ -51,6 +51,8 @@ module VagrantPlugins "Master VM for '#{env[:machine].box.name}' already exists " + " (id=#{env[:clone_id]}) - skipping import step.") return + else + env.delete(:clone_id) end env[:ui].info(I18n.t("vagrant.actions.vm.clone.setup_master"))