Skip to content

Commit

Permalink
Merge pull request wso2#12380 from YasasRangika/gateway-policy-feature
Browse files Browse the repository at this point in the history
Fix gateway name validating issues
  • Loading branch information
tharikaGitHub authored Mar 27, 2024
2 parents c4d4f8a + 59a38db commit c26a4e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private void validateGatewayLabels(List<GatewayPolicyDeploymentDTO> gatewayPolic
String labelToCheck = dto.getGatewayLabel();
boolean labelFound = false;
for (Environment env : allEnvs) {
if (env.getDisplayName().equals(labelToCheck)) {
if (env.getName().equals(labelToCheck)) {
labelFound = true;
break;
}
Expand Down

0 comments on commit c26a4e9

Please sign in to comment.