Skip to content

Commit 2519607

Browse files
committed
buildlet: stop explicitly selecting random availability zones on EC2
This change stops explicitly selecting a random availability zone upon EC2 vm creation if one is not set. The EC2 api will select an availability zone with capacity for the request when an availability zone is not set. The caller maintains the ability to set an availability zone if needed. Updates golang/go#36841 Change-Id: I87d4e8e66fcfadfedbe584a2c016696dc4d62062 Reviewed-on: https://go-review.googlesource.com/c/build/+/247901 Run-TryBot: Carlos Amedee <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 682b3dd commit 2519607

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

buildlet/ec2.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ func (c *EC2Client) StartNewVM(ctx context.Context, buildEnv *buildenv.Environme
5858
if opts.Description == "" {
5959
opts.Description = fmt.Sprintf("Go Builder for %s", hostType)
6060
}
61-
if opts.Zone == "" {
62-
opts.Zone = buildEnv.RandomEC2VMZone()
63-
}
6461
if opts.DeleteIn == 0 {
6562
opts.DeleteIn = 30 * time.Minute
6663
}

0 commit comments

Comments
 (0)