Chi Wai Chan 3366caea2c
Fix compute, volume, and share endpoint discovery.
The endpoint discovery mechanism in compute, volume, and share use
no_port_cut_url to cut the URLs after the version (including the
version) if port is not present.  However, when the port is present, the
no_port_cut_url method sets the top_level to True when calling do_get
method. This causes the do_get method also cut the top_level_path of the
URLs because by default the top_level_path is set to "". This behavior
is not desired because different clouds maybe have endpoints with
different top_level_path other than "". Instead of using
no_port_cut_url, we can use utils.get_base_url to properly cut the URLs
after and including the version.

Story: #2010968
Task: #49109
Change-Id: I221b6267afce90b8b7e22d468f0824c9365f4a91
2023-12-12 15:22:55 +08:00
..
2016-08-24 17:21:57 +02:00
2023-08-21 11:29:06 +00:00
2020-11-14 11:17:27 +00:00