core: remove temp file when done with box

This commit is contained in:
Mitchell Hashimoto 2014-04-17 08:58:38 -07:00
parent 4fb6b561c6
commit e05bfa979e
1 changed files with 2 additions and 0 deletions

View File

@ -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,