passes client cert option from Vagrant file to box_add

This commit is contained in:
Simon Thulbourn 2013-05-23 15:13:04 +01:00
parent 97f9206787
commit ef98c7b8b1
1 changed files with 7 additions and 5 deletions

View File

@ -29,6 +29,7 @@ module Vagrant
# raise a terrible runtime error.
box_name = env[:machine].config.vm.box
box_url = env[:machine].config.vm.box_url
box_client_cert = env[:machine].config.vm.client_cert
lock.synchronize do
# First see if we actually have the box now.
@ -55,7 +56,8 @@ module Vagrant
env[:action_runner].run(Vagrant::Action.action_box_add, {
:box_name => box_name,
:box_provider => env[:machine].provider_name,
:box_url => box_url
:box_url => box_url,
:box_client_cert => box_client_cert
})
rescue Errors::BoxAlreadyExists
# Just ignore this, since it means the next part will succeed!