core: if interrupted, don't open metadata file
This commit is contained in:
parent
5e02e9cc89
commit
28bea401c0
|
@ -176,6 +176,7 @@ module Vagrant
|
||||||
begin
|
begin
|
||||||
metadata_path = download(
|
metadata_path = download(
|
||||||
authenticated_url, env, json: true, ui: false)
|
authenticated_url, env, json: true, ui: false)
|
||||||
|
return if @download_interrupted
|
||||||
|
|
||||||
File.open(metadata_path) do |f|
|
File.open(metadata_path) do |f|
|
||||||
metadata = BoxMetadata.new(f)
|
metadata = BoxMetadata.new(f)
|
||||||
|
|
Loading…
Reference in New Issue