Skip to content

Commit

Permalink
JENKINS-29851 Global instance cap not calculated for spot instances c…
Browse files Browse the repository at this point in the history
…orrectly (fixed NPE)
  • Loading branch information
Francis Upton IV committed Jan 13, 2016
1 parent f85b37b commit 848fec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/hudson/plugins/ec2/EC2Cloud.java
Expand Up @@ -337,6 +337,7 @@ private int countCurrentEC2Slaves(SlaveTemplate template) throws AmazonClientExc
if (sir == null) {
LOGGER.log(Level.INFO, "Found spot node without request: " + ec2Slave.getSpotInstanceRequestId());
n++;
continue;
}
if (sirSet.contains(sir))
continue;
Expand Down

0 comments on commit 848fec3

Please sign in to comment.