core: duplicate URL array when authing so we don't mess up original

This commit is contained in:
Mitchell Hashimoto 2014-03-01 12:32:58 +01:00
parent c605855634
commit a858257ffe
1 changed files with 1 additions and 1 deletions

View File

@ -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."