Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonWoodlief committed Jul 26, 2021
1 parent ad05e3a commit 88c0453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ibm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,9 @@ func (c *Config) ClientSession() (interface{}, error) {

var authenticator core.Authenticator

os.Setenv("IBMCLOUD_IAM_ENDPOINT", "https://iam.test.cloud.ibm.com")
os.Setenv("IBMCLOUD_CATALOG_MANAGEMENT_API_ENDPOINT", "https://dev-cm.globalcatalog.test.cloud.ibm.com/api/v1-beta")

if c.BluemixAPIKey != "" {
authenticator = &core.IamAuthenticator{
ApiKey: c.BluemixAPIKey,
Expand All @@ -1162,9 +1165,6 @@ func (c *Config) ClientSession() (interface{}, error) {
}
}

os.Setenv("IBMCLOUD_IAM_ENDPOINT", "https://iam.test.cloud.ibm.com")
os.Setenv("IBMCLOUD_CATALOG_MANAGEMENT_API_ENDPOINT", "https://dev-cm.globalcatalog.test.cloud.ibm.com/api/v1-beta")

// Construct an "options" struct for creating the service client.
catalogManagementURL := "https://cm.globalcatalog.cloud.ibm.com/api/v1-beta"
if c.Visibility == "private" {
Expand Down

0 comments on commit 88c0453

Please sign in to comment.