From b6830639dd64e9428422c4a2fe4d6e49da02fe9c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 10 Mar 2014 14:33:30 -0700 Subject: [PATCH] core: EINVAL is not a metadata URL --- CHANGELOG.md | 1 + lib/vagrant/action/builtin/box_add.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0314c049f..5b64aea71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ BUG FIXES: - 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) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 634015e26..8573cae12 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -450,6 +450,10 @@ module Vagrant return true rescue Errors::BoxMetadataMalformed 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 return false end