aojeagarcia 2fba9f42b9 Allow Ipv6 addresses for nova_metadata_host
Current logic didn't check if the nova_metadata_host is an IPv6 address
causing the proxy request to fail with an exception because the url is
not valid.

This patchs check if the nova_metadata_host is an IPv6 address and
create a valid url enclosing the IPv6 address with brackets

Closes-Bug: #1796593

Change-Id: Ibfebffcec2c8860237a1f151084de978a7863bd8
Signed-off-by: aojeagarcia <aojeagarcia@suse.com>
(cherry picked from commit 85588ad38e3a08137f4f7b4be98ce271064eb2f0)
2018-10-25 14:34:07 +00:00
..
2015-04-06 23:28:31 +00:00
2016-08-30 10:18:19 -04:00
2017-07-27 09:03:00 -07:00