box add works even if no provider is set

This commit is contained in:
Mitchell Hashimoto 2013-01-16 22:52:44 -08:00
parent c6c27c5e62
commit 10a051a64b
1 changed files with 5 additions and 1 deletions

View File

@ -33,9 +33,13 @@ module VagrantPlugins
existing.destroy! if existing existing.destroy! if existing
end end
# Get the provider if one was set
provider = nil
provider = options[:provider].to_sym if options[:provider]
@env.action_runner.run(Vagrant::Action.action_box_add, { @env.action_runner.run(Vagrant::Action.action_box_add, {
:box_name => argv[0], :box_name => argv[0],
:box_provider => options[:provider].to_sym, :box_provider => provider,
:box_url => argv[1] :box_url => argv[1]
}) })