core: EINVAL is not a metadata URL

This commit is contained in:
Mitchell Hashimoto 2014-03-10 14:33:30 -07:00
parent 171b7c76d7
commit b6830639dd
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
BUG FIXES: BUG FIXES:
- core: V1 Vagrantfiles can upgrade provisioners properly. [GH-3092] - core: V1 Vagrantfiles can upgrade provisioners properly. [GH-3092]
- core: Rare EINVAL errors on box adding are gone. [GH-3094]
## 1.5.0 (March 10, 2014) ## 1.5.0 (March 10, 2014)

View File

@ -450,6 +450,10 @@ module Vagrant
return true return true
rescue Errors::BoxMetadataMalformed rescue Errors::BoxMetadataMalformed
return false return false
rescue Errno::EINVAL
# Actually not sure what causes this, but its always
# in a case that isn't true.
return false
rescue Errno::ENOENT rescue Errno::ENOENT
return false return false
end end