Skip to content

Commit

Permalink
Merge pull request #538 from MRamonLeon/JENKINS-61161
Browse files Browse the repository at this point in the history
[JENKINS-61161] Avoid infamous UI connection strategy warning
  • Loading branch information
MRamonLeon authored Nov 25, 2020
2 parents 6712bf5 + e7fdf4d commit 1bd695f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/ec2/SlaveTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,7 @@ public ListBoxModel doFillConnectionStrategyItems(@QueryParameter String connect

public FormValidation doCheckConnectionStrategy(@QueryParameter String connectionStrategy) {
return Stream.of(ConnectionStrategy.values())
.filter(v -> v.equalsName(connectionStrategy))
.filter(v -> v.name().equals(connectionStrategy))
.findFirst()
.map(s -> FormValidation.ok())
.orElse(FormValidation.error("Could not find selected connection strategy"));
Expand Down

0 comments on commit 1bd695f

Please sign in to comment.