From e05bfa979ee540cd84f785a6b1d13bee1a3a8375 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 17 Apr 2014 08:58:38 -0700 Subject: [PATCH] core: remove temp file when done with box --- lib/vagrant/box.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/box.rb b/lib/vagrant/box.rb index 4baca3a4f..2dca80953 100644 --- a/lib/vagrant/box.rb +++ b/lib/vagrant/box.rb @@ -106,6 +106,8 @@ module Vagrant rescue Errors::DownloaderError => e raise Errors::BoxMetadataDownloadError, message: e.extra_data[:message] + ensure + tf.unlink if tf end # Checks if the box has an update and returns the metadata, version,