Skip to content

Commit

Permalink
[JENKINS-61161] Avoid infamous UI connection strategy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MRamonLeon committed Nov 24, 2020
1 parent 7f8196c commit e7fdf4d
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 e7fdf4d

Please sign in to comment.