Skip to content

Commit

Permalink
hardcode YS1 values
Browse files Browse the repository at this point in the history
  • Loading branch information
JonWoodlief committed Jul 26, 2021
1 parent 74ba3c9 commit 7d4e1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ func (c *Config) ClientSession() (interface{}, error) {
if c.BluemixAPIKey != "" {
authenticator = &core.IamAuthenticator{
ApiKey: c.BluemixAPIKey,
URL: envFallBack([]string{"IBMCLOUD_IAM_API_ENDPOINT"}, "https://iam.cloud.ibm.com") + "/identity/token",
URL: envFallBack([]string{"IBMCLOUD_IAM_API_ENDPOINT"}, "https://iam.test.cloud.ibm.com") + "/identity/token",
}
} else if strings.HasPrefix(sess.BluemixSession.Config.IAMAccessToken, "Bearer") {
authenticator = &core.BearerTokenAuthenticator{
Expand All @@ -1163,7 +1163,7 @@ func (c *Config) ClientSession() (interface{}, error) {
}

// Construct an "options" struct for creating the service client.
catalogManagementURL := "https://cm.globalcatalog.cloud.ibm.com/api/v1-beta"
catalogManagementURL := "https://cm.globalcatalog.test.cloud.ibm.com/api/v1-beta"
if c.Visibility == "private" {
session.catalogManagementClientErr = fmt.Errorf("Catalog Management resource doesnot support private endpoints")
}
Expand Down

0 comments on commit 7d4e1e1

Please sign in to comment.