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
This commit is contained in:
John Julien 2016-03-09 19:33:47 -06:00
parent 1f88a97373
commit e0ecda961c
1 changed files with 2 additions and 0 deletions

View File

@ -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"))