providers/virtualbox: discard state if cloning

This commit is contained in:
Mitchell Hashimoto 2015-10-08 12:50:02 -04:00
parent dbcc936a71
commit e9922d1754
1 changed files with 2 additions and 0 deletions

View File

@ -391,11 +391,13 @@ module VagrantPlugins
b2.use PrepareClone
b2.use PrepareCloneSnapshot
b2.use CreateClone
b2.use DiscardState
elsif env[:machine].provider_config.linked_clone
# We are cloning from the box
b2.use ImportMaster
b2.use PrepareCloneSnapshot
b2.use CreateClone
b2.use DiscardState
else
# We are just doing a normal import from a box
b2.use Import