Skip to content

Commit

Permalink
fix: Look for iam_apikey in credential file for IAM auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatino10 committed Apr 9, 2019
1 parent e42ecfc commit 0bd16c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IBM.Cloud.SDK.Core/Service/IBMService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected IBMService(string serviceName)
}
}

string apiKey = Environment.GetEnvironmentVariable(ServiceName.ToUpper() + "_APIKEY");
string apiKey = Environment.GetEnvironmentVariable(ServiceName.ToUpper() + "_IAM_APIKEY");
if (!string.IsNullOrEmpty(apiKey))
ApiKey = apiKey;
string un = Environment.GetEnvironmentVariable(ServiceName.ToUpper() + "_USERNAME");
Expand Down

0 comments on commit 0bd16c3

Please sign in to comment.