TUN-5519: Adjust URL for virtual_networks endpoint to match what we will publish

This commit is contained in:
Nuno Diegues 2021-12-07 13:06:46 +00:00
parent b73c588254
commit 9bc59bc78c
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ func NewRESTClient(baseURL, accountTag, zoneTag, authToken, userAgent string, lo
if err != nil {
return nil, errors.Wrap(err, "failed to create route account-level endpoint")
}
accountVnetsEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/virtual_networks", baseURL, accountTag))
accountVnetsEndpoint, err := url.Parse(fmt.Sprintf("%s/accounts/%s/teamnet/virtual_networks", baseURL, accountTag))
if err != nil {
return nil, errors.Wrap(err, "failed to create virtual network account-level endpoint")
}