diff --git a/lib/vagrant/action/builtin/write_box_info.rb b/lib/vagrant/action/builtin/write_box_info.rb index ebf11cfb9..a8bcd30aa 100644 --- a/lib/vagrant/action/builtin/write_box_info.rb +++ b/lib/vagrant/action/builtin/write_box_info.rb @@ -11,10 +11,13 @@ module Vagrant end def call(env) - box_url = env[:box_url] - box_added = env[:box_added] + box_url = env[:box_url] + box_added = env[:box_added] + box_state_file = env[:box_state_file] - # TODO: Persist box_url / provider / datetime + # Mark that we downloaded the box + @logger.info("Adding the box to the state file...") + box_state_file.add_box(box_added, box_url) @app.call(env) end