Make sure `vagrant init` gets proper default box

This commit is contained in:
Mitchell Hashimoto 2010-08-01 19:33:04 -07:00
parent 17c397fa28
commit b28743602e
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ module Vagrant
rootfile_path = File.join(Dir.pwd, Environment::ROOTFILE_NAME)
error_and_exit(:rootfile_already_exists) if File.exist?(rootfile_path)
# Write the rootfile
opts = { :default_box => "base", :default_box_url => nil}.merge(opts)
# Set the defaults of the Vagrantfile
opts[:default_box] ||= "base"
File.open(rootfile_path, 'w+') do |f|
f.write(TemplateRenderer.render(Environment::ROOTFILE_NAME, opts))