From 8b5e2903b9d0a7a354fd934866b36302dff77508 Mon Sep 17 00:00:00 2001 From: Marin Salinas Date: Wed, 4 Nov 2020 08:13:37 -0600 Subject: [PATCH] feat: add hk endpoint support for osc builder (#10207) --- builder/osc/common/access_config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/osc/common/access_config.go b/builder/osc/common/access_config.go index e02d335c7..46530429b 100644 --- a/builder/osc/common/access_config.go +++ b/builder/osc/common/access_config.go @@ -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 == "" {