Skip to content

Commit c211c4b

Browse files
authored
Fix the regression of private endpoint for GC (#6235)
1 parent 94d6844 commit c211c4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ibm/conns/config.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3650,7 +3650,11 @@ func (c *Config) ClientSession() (interface{}, error) {
36503650
// CATALOG MANAGEMENT Service
36513651
globalcatalogURL := globalcatalogv1.DefaultServiceURL
36523652
if c.Visibility == "private" || c.Visibility == "public-and-private" {
3653-
globalcatalogURL = ContructEndpoint("private.globalcatalog", cloudEndpoint)
3653+
if c.Region == "us-south" || c.Region == "us-east" {
3654+
globalcatalogURL = ContructEndpoint(fmt.Sprintf("private.%s.globalcatalog", c.Region), fmt.Sprintf("%s", cloudEndpoint))
3655+
} else {
3656+
globalcatalogURL = ContructEndpoint("private.us-south.globalcatalog", fmt.Sprintf("%s", cloudEndpoint))
3657+
}
36543658
}
36553659
if fileMap != nil && c.Visibility != "public-and-private" {
36563660
globalcatalogURL = fileFallBack(fileMap, c.Visibility, "IBMCLOUD_RESOURCE_CATALOG_API_ENDPOINT", c.Region, globalcatalogURL)

0 commit comments

Comments
 (0)