Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
senthalan committed Oct 13, 2023
1 parent afa46ec commit 50ce3f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ protected void checkTokenEnvAgainstDeploymentEnv(String keyEnvId, APIConfig matc
throws APISecurityException {

// Enable Key Env validation only if system property is set.
String disableRoleValidation = System.getProperty(ENABLE_KEY_ENV_VALIDATION);
if (!Boolean.parseBoolean(disableRoleValidation)) {
String disableKeyEnvValidation = System.getProperty(ENABLE_KEY_ENV_VALIDATION);
if (!Boolean.parseBoolean(disableKeyEnvValidation)) {
return;
}

// TODO: This needs to be changed to Choreo env.
// TODO(senthalan): This needs to be changed to Choreo env id when the migration is done.
String apiEnvName = matchedAPI.getEnvironmentName();
if (StringUtils.isNotEmpty(keyEnvId) && !StringUtils.equals(keyEnvId, DEFAULT_CHOREO_ENV_ID)) {
if (StringUtils.equals(keyEnvId, apiEnvName)) {
Expand Down

0 comments on commit 50ce3f5

Please sign in to comment.