Commit c1c71a8
committed
fix(handler/ec2-fleet): set resource_id on instant fleet machine stubs
When _acquire_hosts_internal builds the initial instance list for an
instant fleet, each stub only carried instance_id. Without resource_id,
group_by_resource (used by the return path) silently skips every stub,
so the machines are never fed to terminate_instances and the AWS
instances stay running until they expire or are cleaned up out-of-band.
Stamp resource_id=fleet_id on every stub at creation time. fleet_id is
already in scope from the line above where the fleet was created.1 parent f3a42c9 commit c1c71a8
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
0 commit comments