Skip to content

Commit

Permalink
Fix gateway name validating issues
Browse files Browse the repository at this point in the history
  • Loading branch information
YasasRangika committed Mar 27, 2024
1 parent c4d4f8a commit 59a38db
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 59a38db

Please sign in to comment.