core: log if not checking box metadata

This commit is contained in:
Mitchell Hashimoto 2015-11-18 18:09:18 -08:00
parent 891c47c742
commit 7c9fd58786
1 changed files with 4 additions and 1 deletions

View File

@ -492,7 +492,10 @@ module Vagrant
end
# If this isn't HTTP, then don't do the HEAD request
return false if !uri.scheme.downcase.start_with?("http")
if !uri.scheme.downcase.start_with?("http")
@logger.info("not checking metadata since box URI isn't HTTP")
return false
end
output = d.head
match = output.scan(/^Content-Type: (.+?)$/i).last