Skip to content

Commit 13dd25c

Browse files
committed
fix(BaseService): Fix misnamed properties
1 parent fe8ad05 commit 13dd25c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BaseService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public BaseService(string serviceId)
4242

4343
string ApiKey = Environment.GetEnvironmentVariable(serviceId.ToUpper() + "_IAM_APIKEY");
4444
// check for old IAM API key name as well
45-
if (string.IsNullOrEmpty(apiKey)) {
46-
apiKey = Environment.GetEnvironmentVariable(ServiceName.ToUpper() + "_APIKEY");
45+
if (string.IsNullOrEmpty(ApiKey)) {
46+
ApiKey = Environment.GetEnvironmentVariable(serviceId.ToUpper() + "_APIKEY");
4747
}
4848
string Username = Environment.GetEnvironmentVariable(serviceId.ToUpper() + "_USERNAME");
4949
string Password = Environment.GetEnvironmentVariable(serviceId.ToUpper() + "_PASSWORD");

0 commit comments

Comments
 (0)