Merge pull request #7158 from mitchellh/sethvargo/auth_metadata

Authenticate metadata box urls
This commit is contained in:
Seth Vargo 2016-04-05 10:46:01 -04:00
commit bc74cb4008
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ module Vagrant
end
provider_url = metadata_provider.url
if url != authenticated_url
if provider_url != authenticated_url
# Authenticate the provider URL since we're using auth
hook_env = env[:hook].call(:authenticate_box_url, box_urls: [provider_url])
authed_urls = hook_env[:box_urls]
@ -261,7 +261,7 @@ module Vagrant
raise "Bad box authentication hook, did not generate proper results."
end
provider_url = authed_urls[0]
end
end
box_add(
[[provider_url, metadata_provider.url]],