From a858257ffe3452ecb149fa76df27e8a01f9b726a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 1 Mar 2014 12:32:58 +0100 Subject: [PATCH] core: duplicate URL array when authing so we don't mess up original --- lib/vagrant/action/builtin/box_add.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index d1ee6c2b5..2483aa65e 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -60,7 +60,7 @@ module Vagrant # Call the hook to transform URLs into authenticated URLs. # In the case we don't have a plugin that does this, then it # will just return the same URLs. - hook_env = env[:hook].call(:authenticate_box_url, box_urls: url) + hook_env = env[:hook].call(:authenticate_box_url, box_urls: url.dup) authed_urls = hook_env[:box_urls] if !authed_urls || authed_urls.length != url.length raise "Bad box authentication hook, did not generate proper results."