Skip to content

Commit

Permalink
Merge pull request #340 from res0nance/patch-2
Browse files Browse the repository at this point in the history
Add M5a instance support and correct M4
  • Loading branch information
thoulen committed May 21, 2019
2 parents 84cea27 + e1e6525 commit 26338c9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main/java/hudson/plugins/ec2/EC2AbstractSlave.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ public EC2Cloud getCloud() {
return 4;
case M5Large:
return 4;
case M5aLarge:
return 4;
case T3Xlarge:
return 5;
case A1Xlarge:
Expand Down Expand Up @@ -255,6 +257,8 @@ public EC2Cloud getCloud() {
return 13;
case M5Xlarge:
return 13;
case M5aXlarge:
return 13;
case A14xlarge:
return 14;
case C3Xlarge:
Expand All @@ -275,6 +279,8 @@ public EC2Cloud getCloud() {
return 26;
case M52xlarge:
return 26;
case M5a2xlarge:
return 26;
case G22xlarge:
return 26;
case C32xlarge:
Expand Down Expand Up @@ -305,6 +311,8 @@ public EC2Cloud getCloud() {
return 55;
case M54xlarge:
return 55;
case M5a4xlarge:
return 55;
case Cc28xlarge:
return 88;
case Cr18xlarge:
Expand All @@ -321,13 +329,18 @@ public EC2Cloud getCloud() {
return 120;
case M512xlarge:
return 120;
// TODO: M416xlarge
case M5a12xlarge:
return 120;
case M416xlarge:
return 160;
case C518xlarge:
return 216;
case C5d18xlarge:
return 216;
case M524xlarge:
return 240;
case M5a24xlarge:
return 240;
// We don't have a suggestion, but we don't want to fail completely
// surely?
default:
Expand Down

0 comments on commit 26338c9

Please sign in to comment.