core: duplicate URL array when authing so we don't mess up original
This commit is contained in:
parent
c605855634
commit
a858257ffe
|
@ -60,7 +60,7 @@ module Vagrant
|
||||||
# Call the hook to transform URLs into authenticated URLs.
|
# Call the hook to transform URLs into authenticated URLs.
|
||||||
# In the case we don't have a plugin that does this, then it
|
# In the case we don't have a plugin that does this, then it
|
||||||
# will just return the same URLs.
|
# 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]
|
authed_urls = hook_env[:box_urls]
|
||||||
if !authed_urls || authed_urls.length != url.length
|
if !authed_urls || authed_urls.length != url.length
|
||||||
raise "Bad box authentication hook, did not generate proper results."
|
raise "Bad box authentication hook, did not generate proper results."
|
||||||
|
|
Loading…
Reference in New Issue