Skip to content

Commit eeda4c8

Browse files
rscgopherbot
authored andcommitted
dashboard: do not add -standard-8 or -standard-16 to AWS machine types
Reported buildlet failure says err=unknown EC2 vm type: m6g.xlarge-standard-16. Oops. Change-Id: I510bbb4a5bbf83f39d95305011c2d294cf876be5 Reviewed-on: https://go-review.googlesource.com/c/build/+/420755 Run-TryBot: Russ Cox <[email protected]> Auto-Submit: Russ Cox <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent c6075b8 commit eeda4c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dashboard/builders.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,8 +1331,11 @@ func (c *BuildConfig) GorootFinal() string {
13311331
return "/usr/local/go"
13321332
}
13331333

1334-
// MachineType returns the GCE machine type to use for this builder.
1334+
// MachineType returns the AWS or GCE machine type to use for this builder.
13351335
func (c *HostConfig) MachineType() string {
1336+
if c.IsEC2() {
1337+
return c.machineType
1338+
}
13361339
typ := c.machineType
13371340
if typ == "" {
13381341
if c.NestedVirt || c.MinCPUPlatform != "" {

0 commit comments

Comments
 (0)