feat: add hk endpoint support for osc builder (#10207)

This commit is contained in:
Marin Salinas 2020-11-04 08:13:37 -06:00 committed by GitHub
parent 9ec55d3cd7
commit 8b5e2903b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ func (c *AccessConfig) NewOSCClient() *osc.APIClient {
if c.CustomEndpointOAPI == "" {
c.CustomEndpointOAPI = "outscale.com/oapi/latest"
if c.RawRegion == "cn-southeast-1" {
c.CustomEndpointOAPI = "outscale.hk/oapi/latest"
}
}
if c.X509certPath == "" {