Skip to content

Commit

Permalink
Fix Spotless (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Nov 28, 2024
1 parent 01ac047 commit cc93a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/ec2/EC2Cloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,8 @@ public Collection<PlannedNode> provision(final Label label, int excessWorkload)
}
} catch (AmazonServiceException e) {
LOGGER.log(Level.WARNING, t + ". Exception during provisioning", e);
if (e.getErrorCode().equals("RequestExpired") || e.getErrorCode().equals("ExpiredToken")) {
if (e.getErrorCode().equals("RequestExpired")
|| e.getErrorCode().equals("ExpiredToken")) {
// A RequestExpired or ExpiredToken error can indicate that credentials have expired so reconnect
LOGGER.log(Level.INFO, "Reconnecting to EC2 due to RequestExpired or ExpiredToken error");

Check warning on line 882 in src/main/java/hudson/plugins/ec2/EC2Cloud.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 879-882 are not covered by tests
try {
Expand Down

0 comments on commit cc93a2e

Please sign in to comment.