Skip to content

Commit

Permalink
Fix the private endpoint construction based on CSE endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Feb 11, 2025
1 parent c61406f commit 5ec9e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/conns/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ func (c *Config) ClientSession() (interface{}, error) {
globalTaggingEndpoint := "https://tags.global-search-tagging.cloud.ibm.com"
if c.Visibility == "private" || c.Visibility == "public-and-private" {
var globalTaggingRegion string
if c.Region != "us-south" && c.Region != "us-east" {
if c.Region != "us-south" && c.Region != "au-syd" && c.Region != "eu-gb" && c.Region != "eu-de" {
globalTaggingRegion = "us-south"
} else {
globalTaggingRegion = c.Region
Expand Down Expand Up @@ -2235,7 +2235,7 @@ func (c *Config) ClientSession() (interface{}, error) {
globalSearchEndpoint := "https://api.global-search-tagging.cloud.ibm.com"
if c.Visibility == "private" || c.Visibility == "public-and-private" {
var globalSearchRegion string
if c.Region != "us-south" && c.Region != "au-syd" && c.Region != "eu-gb" {
if c.Region != "us-south" && c.Region != "au-syd" && c.Region != "eu-gb" && c.Region != "eu-de" {
globalSearchRegion = "us-south"
} else {
globalSearchRegion = c.Region
Expand Down

0 comments on commit 5ec9e18

Please sign in to comment.